summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-servers/thttpd/files/thttpd-2.25b-fix-illegal-path-info.patch')
-rw-r--r--www-servers/thttpd/files/thttpd-2.25b-fix-illegal-path-info.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/www-servers/thttpd/files/thttpd-2.25b-fix-illegal-path-info.patch b/www-servers/thttpd/files/thttpd-2.25b-fix-illegal-path-info.patch
deleted file mode 100644
index d1688f144681..000000000000
--- a/www-servers/thttpd/files/thttpd-2.25b-fix-illegal-path-info.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -Naur thttpd-2.25b.orig/libhttpd.c thttpd-2.25b/libhttpd.c
---- thttpd-2.25b.orig/libhttpd.c 2007-10-14 10:09:55.000000000 +0000
-+++ thttpd-2.25b/libhttpd.c 2007-10-14 10:09:11.000000000 +0000
-@@ -2322,8 +2320,11 @@
- {
- int i;
- i = strlen( hc->origfilename ) - strlen( hc->pathinfo );
-- if ( i > 0 && strcmp( &hc->origfilename[i], hc->pathinfo ) == 0 )
-- hc->origfilename[i - 1] = '\0';
-+ if ( strcmp( &hc->origfilename[i], hc->pathinfo ) == 0 )
-+ {
-+ if ( i == 0 ) hc->origfilename[0] = '\0';
-+ else hc->origfilename[i - 1] = '\0';
-+ }
- }
-
- /* If the expanded filename is an absolute path, check that it's still