Mercurial > hg > nginx
comparison src/http/modules/ngx_http_secure_link_module.c @ 2279:bbb17a60ec44
allow short secure links
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 21 Oct 2008 12:33:23 +0000 |
parents | 4f1616b32744 |
children | c7d57b539248 |
comparison
equal
deleted
inserted
replaced
2278:4a878cbad757 | 2279:bbb17a60ec44 |
---|---|
111 | 111 |
112 url_start: | 112 url_start: |
113 | 113 |
114 len = last - p; | 114 len = last - p; |
115 | 115 |
116 if (end - start != 32 || len < 3) { | 116 if (end - start != 32 || len == 0) { |
117 goto not_found; | 117 goto not_found; |
118 } | 118 } |
119 | 119 |
120 ngx_md5_init(&md5); | 120 ngx_md5_init(&md5); |
121 ngx_md5_update(&md5, p, len); | 121 ngx_md5_update(&md5, p, len); |