Follow-up to r1922931.

In set_cookie_name() and set_cookie_name2(), now that the empty 'name' argument is explicitly handled, the error message in check_string() can be simplified because the cookie name can't be empty anymore when this function is called.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926188 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christophe Jaillet
2025-06-06 20:12:16 +00:00
parent bc44c682d3
commit 9a2eca1ca1

View File

@ -537,7 +537,7 @@ static const char *check_string(cmd_parms * cmd, const char *string)
{
if (APR_SUCCESS != ap_cookie_check_string(string)) {
return apr_pstrcat(cmd->pool, cmd->directive->directive,
" cannot be empty, or contain '=', ';' or '&'.",
" cannot contain '=', ';' or '&'.",
NULL);
}
return NULL;