URL:
  <http://gna.org/bugs/?func=detailitem&item_id=4947>

                 Summary: Upper/lower case problems in host names
                 Project: Savane
            Submitted by: kcoolsae
            Submitted on: Saturday 12/24/2005 at 14:27
                Category: Web Frontend
                Priority: C - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 1.3
         Planned Release: 

    _______________________________________________________

Details:

When setting a hostname for a group type using the wrong case, certain
actions result in  an infinite redirection loop. 

For example: if the real name of a host is myhost.com and you set MyHost.com
as a base host, then any request to http://myhost.com/... is automatically
redirected to http://MyHost.com/, because $HTTP_HOST and
$project->GetTypeBaseHost() are not the same. 
Chances are however that browser or server will return a $HTTP_HOST 
of myhost.com also for this new request, leading into an infinite loop of
redirections. (FireFox signals a 'redirection limit exceeded' and bails
out.)

Suggested correction: use a case independent compare between $HTTP_HOST and
$project->GetTypeBaseHost() when checking whether a redirection is needed.
This problem occurs in at least two different .php-files, so maybe the common
code should be factored out?






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?func=detailitem&item_id=4947>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Savane-dev mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev

Reply via email to