mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-10-27 06:05:38 +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:
1 parent
3d8d3958ea
commit
b9bc65e3c2
1 file changed
+1
-1
+1
-1
@@ -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