dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80b39ec
)
Let CookieJar work for hostnames without dots in them, so that ApiTest can work on...
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 29 Jun 2010 03:49:35 +0000
(
03:49
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 29 Jun 2010 03:49:35 +0000
(
03:49
+0000)
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
1dc9859
..
3f571cf
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-560,9
+560,6
@@
class Cookie {
$dc = explode(".", $domain);
- // Don't allow cookies for "localhost", "ls" or other dot-less hosts
- if( count($dc) < 2 ) return false;
-
// Only allow full, valid IP addresses
if( preg_match( '/^[0-9.]+$/', $domain ) ) {
if( count( $dc ) != 4 ) return false;
@@
-707,7
+704,6
@@
class CookieJar {
} elseif ( !Cookie::validateCookieDomain( $attr['domain'], $domain ) ) {
return null;
}
-
$this->setCookie( $name, $value, $attr );
}
}