Git Product home page Git Product logo

Comments (2)

leejo avatar leejo commented on July 23, 2024

[email protected] - 2010-02-10 17:08:12

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.

Thanks for the report, Ray.

Would you be willing to add an automated test
to go with it?

Mark

from cgi.pm.

leejo avatar leejo commented on July 23, 2024

raym - 2010-06-08 08:50:58

On Wed Feb 10 12:08:12 2010, [email protected] wrote:

Would you be willing to add an automated test
to go with it?

Yes, of course. Please see attached patch which adds a test.

Ray.

from cgi.pm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.