Closed (fixed)
Project:
Drupal core
Version:
4.6.0
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Aug 2005 at 22:39 UTC
Updated:
9 Apr 2006 at 18:15 UTC
I have 2 sites running on port 85 (I can not have them on port 80 because of the provider) and can not create settings directory for any of them, ":" is not a valid char for directory name (Windows Host).
Example: http://name.domain.com:81/site/
My suggestion is to change the following line:
$server = explode('.', rtrim($_SERVER['HTTP_HOST'], '.'));
to:
$tmp = parse_url(rtrim($_SERVER['HTTP_HOST'], '.'));
$server = explode('.', $tmp['host']);
Comments
Comment #1
Steven commentedThis is not a patch and certainly not ready to be committed.
Besides, shouldn't we change that explode statement to a split() with [.:] as delimiter then?
Comment #2
pbcomm commentedYes, you should ... but when will that be done?
Comment #3
sepeck commentedis this related or a duplicate of http://drupal.org/node/19934
Comment #4
chx commentedsee http://drupal.org/node/19934#comment-44147 and the "commited" comment afterwards.
Comment #5
(not verified) commented