mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Updated STS parsing to only accept preload when it appears without a value, ignoring tokens like preload=0.
This commit is contained in:
@@ -377,7 +377,7 @@ sts_parse_value (const char *value, guint16 *port, guint64 *duration, gboolean *
|
||||
}
|
||||
else if (!g_ascii_strcasecmp (key, "preload"))
|
||||
{
|
||||
if (*has_preload)
|
||||
if (*has_preload || val)
|
||||
{
|
||||
g_strfreev (tokens);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user