1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

ap_check_cmd_context checks don't work on the block forms

of the lua directives.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200204 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2011-11-10 07:30:55 +00:00
parent 239e4c0466
commit 2fb4d8c18f

View File

@@ -702,11 +702,6 @@ static const char *register_translate_name_hook(cmd_parms *cmd, void *_cfg,
static const char *register_translate_name_block(cmd_parms *cmd, void *_cfg,
const char *line)
{
const char *err = ap_check_cmd_context(cmd, NOT_IN_DIRECTORY|NOT_IN_FILES|
NOT_IN_HTACCESS);
if (err) {
return err;
}
return register_named_block_function_hook("translate_name", cmd, _cfg,
line);
}
@@ -862,12 +857,6 @@ static const char *register_quick_hook(cmd_parms *cmd, void *_cfg,
static const char *register_quick_block(cmd_parms *cmd, void *_cfg,
const char *line)
{
const char *err = ap_check_cmd_context(cmd, NOT_IN_DIRECTORY|NOT_IN_FILES|
NOT_IN_HTACCESS);
if (err) {
return err;
}
return register_named_block_function_hook("quick", cmd, _cfg,
line);
}