ASF Bugzilla – Attachment 33589 Details for
Bug 44181
add UnAlias
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to allow "Alias /whatever/ !" to stop alias processing.
mod_alias_unalias.patch (text/plain), 1.16 KB, created by
Jeff W
on 2016-02-24 18:00:48 UTC
(
hide
)
Description:
Patch to allow "Alias /whatever/ !" to stop alias processing.
Filename:
MIME Type:
Creator:
Jeff W
Created:
2016-02-24 18:00:48 UTC
Size:
1.16 KB
patch
obsolete
>diff --git a/modules/mappers/mod_alias.c b/modules/mappers/mod_alias.c >index dfba133..1e3ab80 100644 >--- a/modules/mappers/mod_alias.c >+++ b/modules/mappers/mod_alias.c >@@ -351,6 +351,9 @@ static char *try_alias_list(request_rec *r, apr_array_header_t *aliases, > if (alias->regexp) { > if (!ap_regexec(alias->regexp, r->uri, AP_MAX_REG_MATCH, regm, 0)) { > if (alias->real) { >+ /* Allow ! to abort alias processing. */ >+ if ( ! strcmp( alias->real, "!" ) ) >+ return NULL; > found = ap_pregsub(r->pool, alias->real, r->uri, > AP_MAX_REG_MATCH, regm); > if (found) { >@@ -388,6 +391,9 @@ static char *try_alias_list(request_rec *r, apr_array_header_t *aliases, > l = alias_matches(r->uri, alias->fake); > > if (l > 0) { >+ /* Allow ! to abort alias processing. */ >+ if ( ! strcmp( alias->real, "!" ) ) >+ return NULL; > ap_set_context_info(r, alias->fake, alias->real); > if (is_redir) { > char *escurl;
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 44181
: 33589