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

Steven’s picture

Status: Reviewed & tested by the community » Active

This 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?

pbcomm’s picture

Yes, you should ... but when will that be done?

sepeck’s picture

is this related or a duplicate of http://drupal.org/node/19934

chx’s picture

Status: Active » Fixed

see http://drupal.org/node/19934#comment-44147 and the "commited" comment afterwards.

Anonymous’s picture

Status: Fixed » Closed (fixed)