aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_referer_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-14 18:51:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-02-14 18:51:19 +0000
commit722231f40788d1243bf302227ed7b6fdfeaea492 (patch)
treef408767af10da88546a8d2b518601aef67ffdfb0 /src/http/modules/ngx_http_referer_module.c
parent0ddd9d6e5ebe8cf3fddaf5f017992f0740dd7996 (diff)
downloadnginx-722231f40788d1243bf302227ed7b6fdfeaea492.tar.gz
nginx-722231f40788d1243bf302227ed7b6fdfeaea492.zip
ngx_strcasecmp()/ngx_strncasecmp()
Diffstat (limited to 'src/http/modules/ngx_http_referer_module.c')
-rw-r--r--src/http/modules/ngx_http_referer_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_referer_module.c b/src/http/modules/ngx_http_referer_module.c
index f3597a1d2..b2c2ef597 100644
--- a/src/http/modules/ngx_http_referer_module.c
+++ b/src/http/modules/ngx_http_referer_module.c
@@ -106,7 +106,7 @@ ngx_http_referer_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v,
ref = r->headers_in.referer->value.data;
if (len < sizeof("http://i.ru") - 1
- || (ngx_strncasecmp(ref, "http://", 7) != 0))
+ || (ngx_strncasecmp(ref, (u_char *) "http://", 7) != 0))
{
if (rlcf->blocked_referer) {
goto valid;