>Number: 2944 >Category: mod_include >Synopsis: access to requested document name >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Wed Sep 2 07:20:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.1 Ben-SSL/1.22 (Unix) PHP/3.0.3 >Environment: FreeBSD 3.0SNAP >Description: With MultiViews enabled you can't easily get document name without language or charset suffix in static documents. It is needed to make alternative language links in every page. Here is the patch, I'm not sure this is the best way, maybe the possibillity to remove subject from string would be more reliable. >How-To-Repeat:
>Fix:
--- mod_include.c.orig Tue Feb 3 11:00:49 1998
+++ mod_include.c Fri Aug 21 13:57:24 1998
@@ -135,6 +135,12 @@
else {
table_set(e, "DOCUMENT_NAME", r->uri);
}
+ if ((t = strrchr(r->uri, '/'))) {
+ table_set(e, "DOCUMENT_REQUESTED_NAME", ++t);
+ }
+ else {
+ table_set(e, "DOCUMENT_REQUESTED_NAME", r->uri);
+ }
if (r->args) {
char *arg_copy = pstrdup(r->pool, r->args);
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request ]
[from a developer. ]
[Reply only with text; DO NOT SEND ATTACHMENTS! ]
