Mercurial > hg > nginx
comparison src/http/modules/ngx_http_referer_module.c @ 1242:ae555e0549ca
strstr() -> strchr()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 06 Jun 2007 12:24:10 +0000 |
parents | db7c468c447d |
children | 8ef04207c84f |
comparison
equal
deleted
inserted
replaced
1241:3e80929ea5af | 1242:ae555e0549ca |
---|---|
350 } | 350 } |
351 | 351 |
352 continue; | 352 continue; |
353 } | 353 } |
354 | 354 |
355 p = (u_char *) ngx_strstr(value[i].data, "/"); | 355 p = (u_char *) ngx_strchr(value[i].data, '/'); |
356 | 356 |
357 if (p) { | 357 if (p) { |
358 uri.len = (value[i].data + value[i].len) - p; | 358 uri.len = (value[i].data + value[i].len) - p; |
359 uri.data = p; | 359 uri.data = p; |
360 value[i].len = p - value[i].data; | 360 value[i].len = p - value[i].data; |