mirror of
https://github.com/apache/httpd.git
synced 2025-08-04 05:42:12 +03:00
mod_lua: Slight null-check fix on setcookie.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1570156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2043,12 +2043,12 @@ static int lua_set_cookie(lua_State *L)
|
||||
}
|
||||
|
||||
/* Create path segment */
|
||||
if (path && strlen(path) > 0) {
|
||||
if (path != NULL && strlen(path) > 0) {
|
||||
strpath = apr_psprintf(r->pool, "Path=\"%s\";", path);
|
||||
}
|
||||
|
||||
/* Create domain segment */
|
||||
if (domain && strlen(domain) > 0) {
|
||||
if (domain != NULL && strlen(domain) > 0) {
|
||||
/* Domain does NOT like quotes in most browsers, so let's avoid that */
|
||||
strdomain = apr_psprintf(r->pool, "Domain=%s;", domain);
|
||||
}
|
||||
|
Reference in New Issue
Block a user