mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +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:
@@ -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,
|
static const char *register_translate_name_block(cmd_parms *cmd, void *_cfg,
|
||||||
const char *line)
|
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,
|
return register_named_block_function_hook("translate_name", cmd, _cfg,
|
||||||
line);
|
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,
|
static const char *register_quick_block(cmd_parms *cmd, void *_cfg,
|
||||||
const char *line)
|
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,
|
return register_named_block_function_hook("quick", cmd, _cfg,
|
||||||
line);
|
line);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user