Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.19
diff -N -u Makefile
--- Makefile	20 Aug 2009 20:40:11 -0000	1.19
+++ Makefile	16 Sep 2009 07:14:14 -0000
@@ -3,6 +3,7 @@
 COMMENT=	robust and small HTTP server and mail proxy server
 
 DISTNAME=	nginx-0.7.61
+PKGNAME=	${DISTNAME}p1
 CATEGORIES=	www
 
 HOMEPAGE=	http://nginx.net/
Index: patches/patch-src_http_ngx_http_parse_c
===================================================================
RCS file: patches/patch-src_http_ngx_http_parse_c
diff -N -u patches/patch-src_http_ngx_http_parse_c
--- /dev/null	16 Sep 2009 07:14:14 -0000
+++ patches/patch-src_http_ngx_http_parse_c	16 Sep 2009 07:14:14 -0000
@@ -0,0 +1,26 @@
+$OpenBSD$
+# VU#180065
+# http://marc.info/?l=nginx&m=125299645117061&w=2
+--- src/http/ngx_http_parse.c.orig	Fri Apr 24 02:38:59 2009
++++ src/http/ngx_http_parse.c	Wed Sep 16 17:09:24 2009
+@@ -1137,11 +1137,15 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_
+ #endif
+             case '/':
+                 state = sw_slash;
+-                u -= 4;
+-                if (u < r->uri.data) {
+-                    return NGX_HTTP_PARSE_INVALID_REQUEST;
+-                }
+-                while (*(u - 1) != '/') {
++                u -= 5;
++                for ( ;; ) {
++                    if (u < r->uri.data) {
++                        return NGX_HTTP_PARSE_INVALID_REQUEST;
++                    }
++                    if (*u == '/') {
++                        u++;
++                        break;
++                    }
+                     u--;
+                 }
+                 break;
