]> git.kaiwu.me - nginx.git/commitdiff
strstr() -> strchr()
authorIgor Sysoev <igor@sysoev.ru>
Wed, 6 Jun 2007 12:24:10 +0000 (12:24 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 6 Jun 2007 12:24:10 +0000 (12:24 +0000)
src/http/modules/ngx_http_referer_module.c

index b2c2ef597d8e30be11132c02f0fe900116273be8..2d16bd5cb6a2c91dc6f1f89958911de6fd97cbba 100644 (file)
@@ -352,7 +352,7 @@ ngx_http_valid_referers(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
             continue;
         }
 
-        p = (u_char *) ngx_strstr(value[i].data, "/");
+        p = (u_char *) ngx_strchr(value[i].data, '/');
 
         if (p) {
             uri.len = (value[i].data + value[i].len) - p;