You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The url() method in CGI.pm examines the X-Forwarded-Host header to
determine the vhost name, but does not cater for this header containing
a comma-separated list (which can happen if the request has passed
through multiple reverse proxies).
The apache documentation
<http://httpd.apache.org/docs/2.2/mod/mod_proxy.html> says:
"Be careful when using these headers on the origin server, since they
will contain more than one (comma-separated) value if the original
request already contained one of these headers."
The Catalyst code caters for this by taking the last value in the list.
The attached patch makes CGI.pm follow the same behaviour.
The text was updated successfully, but these errors were encountered:
The url() method in CGI.pm examines the X-Forwarded-Host header to
determine the vhost name, but does not cater for this header containing
a comma-separated list (which can happen if the request has passed
through multiple reverse proxies).
"Be careful when using these headers on the origin server, since they
will contain more than one (comma-separated) value if the original
request already contained one of these headers."
The Catalyst code caters for this by taking the last value in the list.
The attached patch makes CGI.pm follow the same behaviour.
Thanks for the report, Ray.
Would you be willing to add an automated test
to go with it?
https://rt.cpan.org/Ticket/Display.html?id=54487
The text was updated successfully, but these errors were encountered: