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.

CommentFileSizeAuthor
lower-host-name.patch909 bytespwolanin

Comments

gábor hojtsy’s picture

Status: Needs review » Needs work

Looks 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.

pwolanin’s picture

rolled this into: http://drupal.org/node/324875

drupal_strtolower() is not available at this point in the bootstrap.

pwolanin’s picture

Status: Needs work » Closed (duplicate)