Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2008 at 19:13 UTC
Updated:
27 Oct 2008 at 14:47 UTC
If you are using a conf directory like sites/example.com, Drupal is liekly to redirect you to install.php if you try to visit the site (e.g. using curl) with an address like Example.com or EXAMPLE.COM. Probably we should force the host name to lowercase before looking for the conf directory.
| Comment | File | Size | Author |
|---|---|---|---|
| lower-host-name.patch | 909 bytes | pwolanin |
Comments
Comment #1
gábor hojtsyLooks reasonable. I think we should opt for Drupal's UTF-8 safe lowercase function though, given that accented domain names are a possibility for quite some time now, so it could be "éxample.com" and "Éxample.com" which strtolower migt not catch. It should be checked, whether we actually get UTF-8 chars from Apache / the web server.
Comment #2
pwolanin commentedrolled this into: http://drupal.org/node/324875
drupal_strtolower() is not available at this point in the bootstrap.
Comment #3
pwolanin commented