ASF Bugzilla – Attachment 34093 Details for
Bug 52439
It should be possible to treat errors in .htaccess as nonfatal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Honour nonfatal on Options All specific case
edge-case.patch (text/plain), 1.47 KB, created by
Alexis Maiquez
on 2016-08-02 12:24:19 UTC
(
hide
)
Description:
Honour nonfatal on Options All specific case
Filename:
MIME Type:
Creator:
Alexis Maiquez
Created:
2016-08-02 12:24:19 UTC
Size:
1.47 KB
patch
obsolete
>--- httpd/server/core.c 2016-06-14 01:08:08.000000000 +0200 >+++ httpd/server/core.c 2016-08-02 14:18:51.295988751 +0200 >@@ -1975,9 +1975,28 @@ > } > > if ( (cmd->override_opts & opt) != opt ) { >- return apr_pstrcat(cmd->pool, "Option ", w, " not allowed here", NULL); >+ if (cmd->override & NONFATAL_OVERRIDE) { >+ ap_log_error(APLOG_MARK, APLOG_WARNING, 0, cmd->server, "Option %s not allowed in line %d of %s.", >+ w, cmd->directive->line_num, cmd->directive->filename); >+ >+ /* special case for Options All, we might want to enable every possible (and allowed) parameter */ >+ if (opt != OPT_ALL) { >+ first = 0; >+ continue; >+ } else { >+ /* OPT_ALL doesnt include OPT_SYM_OWNER so its important to take this into account too */ >+ if (cmd->override & OPT_SYM_OWNER) { >+ opt = OPT_ALL & cmd->override; >+ } else { >+ opt = (OPT_ALL | OPT_SYM_OWNER) & cmd->override; >+ } >+ } >+ } else { >+ return apr_pstrcat(cmd->pool, "Option ", w, " not allowed here", NULL); >+ } > } >- else if (action == '-') { >+ >+ if (action == '-') { > /* we ensure the invariant (d->opts_add & d->opts_remove) == 0 */ > d->opts_remove |= opt; > d->opts_add &= ~opt;
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 52439
:
30775
|
34093
|
34099