]> git.kaiwu.me - nginx.git/commitdiff
allow short secure links
authorIgor Sysoev <igor@sysoev.ru>
Tue, 21 Oct 2008 12:33:23 +0000 (12:33 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 21 Oct 2008 12:33:23 +0000 (12:33 +0000)
src/http/modules/ngx_http_secure_link_module.c

index 0b2a4451aed03ea89c6dd7ebbdb52edb11d609b4..049a45c3e07af940a08ca35c75aded9ccb1f7c91 100644 (file)
@@ -113,7 +113,7 @@ url_start:
 
     len = last - p;
 
-    if (end - start != 32 || len < 3) {
+    if (end - start != 32 || len == 0) {
         goto not_found;
     }