]> git.kaiwu.me - nginx.git/commit
Referer module: fixed regex matching against HTTPS referers.
authorSergey Kandaurov <pluknet@nginx.com>
Tue, 13 Aug 2013 13:47:04 +0000 (17:47 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Tue, 13 Aug 2013 13:47:04 +0000 (17:47 +0400)
commit9aaf256e4024e278e099c94281246aada63fc2fa
tree98ef6b0d0bf5a054b1ed01b14ccf322d63d51301
parent65e37b4a128e5c4fe88721c790fd6f5c13102a62
Referer module: fixed regex matching against HTTPS referers.

When matching a compiled regex against value in the "Referer" header field,
the length was calculated incorrectly for strings that start from "https://".
This might cause matching to fail for regexes with end-of-line anchors.

Patch by Liangbin Li.
src/http/modules/ngx_http_referer_module.c