ASF Bugzilla – Attachment 13169 Details for
Bug 10775
SCRIPT_NAME wrong value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for SCRIPT_NAME, skips multiple-slashes in URI while matching against PATH_INFO (note: this doesn't fix PATH_INFO)
script_name_fix (text/plain), 471 bytes, created by
Christian Schubert
on 2004-10-21 19:02:54 UTC
(
hide
)
Description:
fix for SCRIPT_NAME, skips multiple-slashes in URI while matching against PATH_INFO (note: this doesn't fix PATH_INFO)
Filename:
MIME Type:
Creator:
Christian Schubert
Created:
2004-10-21 19:02:54 UTC
Size:
471 bytes
patch
obsolete
>--- httpd-2.0/server/util_script.c 2004-08-01 03:12:30.000000000 +0200 >+++ httpd-2.0-dev/server/util_script.c 2004-10-21 20:56:54.000000000 +0200 >@@ -288,7 +288,11 @@ > int lu = strlen(uri); > int lp = strlen(path_info); > >- while (lu-- && lp-- && uri[lu] == path_info[lp]); >+ while (lu-- && lp-- && uri[lu] == path_info[lp]) { >+ if (path_info[lp] == '/') { >+ while (lu && uri[lu-1] == '/') lu--; >+ } >+ } > > if (lu == -1) { > lu = 0;
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 10775
: 13169