ASF Bugzilla – Attachment 2475 Details for
Bug 10946
redundant slashes in urls cause 403 Forbidden errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch.txt (text/plain), 1.15 KB, created by
David Shane Holden
on 2002-07-24 20:57:04 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
David Shane Holden
Created:
2002-07-24 20:57:04 UTC
Size:
1.15 KB
patch
obsolete
>Index: server/core.c >=================================================================== >RCS file: /home/cvspublic/httpd-2.0/server/core.c,v >retrieving revision 1.195 >diff -u -r1.195 core.c >--- server/core.c 15 Jul 2002 07:46:19 -0000 1.195 >+++ server/core.c 24 Jul 2002 20:01:02 -0000 >@@ -3059,6 +3059,7 @@ > { > void *sconf = r->server->module_config; > core_server_config *conf = ap_get_module_config(sconf, &core_module); >+ unsigned int uri_offset; > > /* XXX this seems too specific, this should probably become > * some general-case test >@@ -3092,8 +3093,11 @@ > * /'s in a row. This happens under windows when the document > * root ends with a / > */ >+ for (uri_offset = 0; ((*(r->uri + uri_offset)) == '/'); uri_offset++) { >+ } >+ > if (apr_filepath_merge(&r->filename, conf->ap_document_root, >- r->uri + ((*(r->uri) == '/') ? 1 : 0), >+ r->uri + uri_offset, > APR_FILEPATH_TRUENAME > | APR_FILEPATH_SECUREROOT, r->pool) > != APR_SUCCESS) {
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 10946
: 2475