The official NGINX Open Source repository. https://nginx.org/
Find a file
Sergey Kandaurov 8658c5b8a1 Referer: fixed server_name regex matching.
The server_name regexes are normally compiled for case-sensitive matching.
This violates case-insensitive obligations in the referer module.  To fix
this, the host string is converted to lower case before matching.

Previously server_name regex was executed against the whole referer string
after dropping the scheme part.  This could led to an improper matching, e.g.:

    server_name ~^localhost$;
    valid_referers server_names;

    Referer: http://localhost/index.html

It was changed to look only at the hostname part.

The server_name regexes are separated into another array to not clash with
regular regexes.
2013-08-29 22:35:26 +04:00
auto Updated PCRE used for win32 builds. 2013-08-23 22:54:08 +04:00
conf MIME: eot MIME type updated to follow IANA (ticket #306). 2013-08-23 16:24:24 +04:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs nginx-1.5.4-RELEASE 2013-08-27 17:37:15 +04:00
misc Updated PCRE used for win32 builds. 2013-08-23 22:54:08 +04:00
src Referer: fixed server_name regex matching. 2013-08-29 22:35:26 +04:00
.hgtags release-1.5.4 tag 2013-08-27 17:37:15 +04:00