ASF Bugzilla – Attachment 14681 Details for
Bug 34405
adds DOCUMENT_NAME_WITHOUT_SUFFIX to mod_include
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
diff -u mod_include.c-old mod_include.c
mod_include.diff2 (text/plain), 517 bytes, created by
David McKellar
on 2005-04-11 19:37:45 UTC
(
hide
)
Description:
diff -u mod_include.c-old mod_include.c
Filename:
MIME Type:
Creator:
David McKellar
Created:
2005-04-11 19:37:45 UTC
Size:
517 bytes
patch
obsolete
>--- mod_include.c.orig 2005-04-08 11:51:09.000000000 -0400 >+++ mod_include.c 2005-04-11 13:15:56.250000000 -0400 >@@ -178,7 +178,16 @@ > } > else { > apr_table_setn(e, "DOCUMENT_NAME", r->uri); >- } >+ } >+ >+ { >+ char *name = apr_pstrdup(r->pool, apr_table_get(e, "DOCUMENT_NAME")); >+ if ((t = strrchr(name, '.')) != NULL) { >+ *t = '\0'; >+ } >+ apr_table_setn(e, "DOCUMENT_NAME_WITHOUT_SUFFIX", name); >+ } >+ > if (r->args) { > char *arg_copy = apr_pstrdup(r->pool, r->args); >
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 Raw
Actions:
View
Attachments on
bug 34405
: 14681