Loading CHANGES +4 −0 Changes for CHANGES: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,10 @@ Changes with Apache 2.1.2-dev [Remove entries to the current 2.0 section below, when backported] *) core: Error out on sections that are missing an argument instead of silently consuming the section. PR 25460. [Geoffrey Young, Paul Querna] *) mod_cache/mod_mem_cache/mod_disk_cache: Move out of experimental. *) Upgraded PCRE to version 5.0. [Brian Pane] Loading server/core.c +37 −0 Changes for server/core.c: 37 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -1662,6 +1662,15 @@ static char *unclosed_directive(cmd_parms *cmd) "> directive missing closing '>'", NULL); } /* * Report a missing args in '<Foo >' syntax error. */ static char *missing_container_arg(cmd_parms *cmd) { return apr_pstrcat(cmd->pool, cmd->cmd->name, "> directive requires additional arguments", NULL); } AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg) Loading @@ -1683,6 +1692,10 @@ AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, limited_methods = apr_pstrndup(cmd->pool, arg, endp - arg); if (!limited_methods[0]) { return missing_container_arg(cmd); } while (limited_methods[0]) { char *method = ap_getword_conf(cmd->pool, &limited_methods); int methnum; Loading Loading @@ -1750,6 +1763,10 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } if (!arg) { if (thiscmd->cmd_data) return "<DirectoryMatch > block must specify a path"; Loading Loading @@ -1850,6 +1867,10 @@ static const char *urlsection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } cmd->path = ap_getword_conf(cmd->pool, &arg); cmd->override = OR_ALL|ACCESS_CONF; Loading Loading @@ -1915,6 +1936,10 @@ static const char *filesection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } cmd->path = ap_getword_conf(cmd->pool, &arg); /* Only if not an .htaccess file */ if (!old_path) { Loading Loading @@ -1986,6 +2011,10 @@ static const char *start_ifmod(cmd_parms *cmd, void *mconfig, const char *arg) arg++; } if (!arg[0]) { return missing_container_arg(cmd); } found = ap_find_linked_module(arg); /* search prelinked stuff */ Loading Loading @@ -2059,6 +2088,10 @@ static const char *start_ifdefine(cmd_parms *cmd, void *dummy, const char *arg) arg++; } if (!arg[0]) { return missing_container_arg(cmd); } defined = ap_exists_config_define(arg); if ((!not && defined) || (not && !defined)) { ap_directive_t *parent = NULL; Loading Loading @@ -2097,6 +2130,10 @@ static const char *virtualhost_section(cmd_parms *cmd, void *dummy, arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } /* FIXME: There's another feature waiting to happen here -- since you can now put multiple addresses/names on a single <VirtualHost> you might want to use it to group common definitions and then Loading Loading
CHANGES +4 −0 Changes for CHANGES: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,10 @@ Changes with Apache 2.1.2-dev [Remove entries to the current 2.0 section below, when backported] *) core: Error out on sections that are missing an argument instead of silently consuming the section. PR 25460. [Geoffrey Young, Paul Querna] *) mod_cache/mod_mem_cache/mod_disk_cache: Move out of experimental. *) Upgraded PCRE to version 5.0. [Brian Pane] Loading
server/core.c +37 −0 Changes for server/core.c: 37 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -1662,6 +1662,15 @@ static char *unclosed_directive(cmd_parms *cmd) "> directive missing closing '>'", NULL); } /* * Report a missing args in '<Foo >' syntax error. */ static char *missing_container_arg(cmd_parms *cmd) { return apr_pstrcat(cmd->pool, cmd->cmd->name, "> directive requires additional arguments", NULL); } AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, void *dummy, const char *arg) Loading @@ -1683,6 +1692,10 @@ AP_CORE_DECLARE_NONSTD(const char *) ap_limit_section(cmd_parms *cmd, limited_methods = apr_pstrndup(cmd->pool, arg, endp - arg); if (!limited_methods[0]) { return missing_container_arg(cmd); } while (limited_methods[0]) { char *method = ap_getword_conf(cmd->pool, &limited_methods); int methnum; Loading Loading @@ -1750,6 +1763,10 @@ static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } if (!arg) { if (thiscmd->cmd_data) return "<DirectoryMatch > block must specify a path"; Loading Loading @@ -1850,6 +1867,10 @@ static const char *urlsection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } cmd->path = ap_getword_conf(cmd->pool, &arg); cmd->override = OR_ALL|ACCESS_CONF; Loading Loading @@ -1915,6 +1936,10 @@ static const char *filesection(cmd_parms *cmd, void *mconfig, const char *arg) arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } cmd->path = ap_getword_conf(cmd->pool, &arg); /* Only if not an .htaccess file */ if (!old_path) { Loading Loading @@ -1986,6 +2011,10 @@ static const char *start_ifmod(cmd_parms *cmd, void *mconfig, const char *arg) arg++; } if (!arg[0]) { return missing_container_arg(cmd); } found = ap_find_linked_module(arg); /* search prelinked stuff */ Loading Loading @@ -2059,6 +2088,10 @@ static const char *start_ifdefine(cmd_parms *cmd, void *dummy, const char *arg) arg++; } if (!arg[0]) { return missing_container_arg(cmd); } defined = ap_exists_config_define(arg); if ((!not && defined) || (not && !defined)) { ap_directive_t *parent = NULL; Loading Loading @@ -2097,6 +2130,10 @@ static const char *virtualhost_section(cmd_parms *cmd, void *dummy, arg = apr_pstrndup(cmd->pool, arg, endp - arg); if (!arg[0]) { return missing_container_arg(cmd); } /* FIXME: There's another feature waiting to happen here -- since you can now put multiple addresses/names on a single <VirtualHost> you might want to use it to group common definitions and then Loading