comparison auto/summary @ 5350:8220e393c241

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 29 Aug 2013 22:35:26 +0400
parents d620f497c50f
children 83d54192e97b
comparison
equal deleted inserted replaced
5349:9b8a634e348a 5350:8220e393c241