Opened 13 years ago

Closed 13 years ago

#226 closed defect (fixed)

Config 'isProxyURL' doesn't check forwarded host

Reported by: adube Owned by:
Priority: major Milestone:
Component: server Version:
Keywords: Cc:

Description

The 'isProxyURL' method doesn't manage if the HTTP_HOST is not local to the proxy.

To fix that, check the HTTP_X_FORWARDED_HOST value. Explode using ',' then pick the first value. If not set, then use the HTTP_HOST.

Change History (2)

comment:1 by adube, 13 years ago

r1052, featuring fix mentioned in description.

Before closing the ticket, more tests should be made.

comment:2 by adube, 13 years ago

Resolution: fixed
Status: newclosed

Used in production environments (tests made). Fixed.

Note: See TracTickets for help on using tickets.