changeset 2279:bbb17a60ec44

allow short secure links
author Igor Sysoev <igor@sysoev.ru>
date Tue, 21 Oct 2008 12:33:23 +0000
parents 4a878cbad757
children 6453161bf53e
files src/http/modules/ngx_http_secure_link_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_secure_link_module.c
+++ b/src/http/modules/ngx_http_secure_link_module.c
@@ -113,7 +113,7 @@ url_start:
 
     len = last - p;
 
-    if (end - start != 32 || len < 3) {
+    if (end - start != 32 || len == 0) {
         goto not_found;
     }