Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 242153 Details for
Bug 331747
www-servers/thttpd removal(?)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix illegal PATH_INFO
fix-illegal-path-info.diff (text/plain), 646 bytes, created by
Gef
on 2010-08-09 21:28:29 UTC
(
hide
)
Description:
Fix illegal PATH_INFO
Filename:
MIME Type:
Creator:
Gef
Created:
2010-08-09 21:28:29 UTC
Size:
646 bytes
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331747
: 242153 |
242155
|
242157
|
242159
|
242161
|
242163