row in sites/settings.php:
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
should be changed to
$domain = '.'. preg_replace('`^www\.`', '', $_SERVER['HTTP_HOST']);
(screened point symbol in regexp)
my "www1.mydomain.com" converted in "..mydomain.com", that works in last versions of Opera and FF, but don't work in IE6,7
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | settings_preg.patch | 823 bytes | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedGood catch - surprising that no one noticed it in the original issue (http://drupal.org/node/117917).
Here's a patch against HEAD.
Comment #2
dries commentedCommitted to CVS HEAD and DRUPAL-5. Thanks! :)
Comment #3
(not verified) commented