mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-18 11:40:18 +00:00
Updated STS parsing to ignore preload tokens that include a value while preserving duplicate-preload rejection for valid tokens.
This commit is contained in:
@@ -377,7 +377,12 @@ sts_parse_value (const char *value, guint16 *port, guint64 *duration, gboolean *
|
|||||||
}
|
}
|
||||||
else if (!g_ascii_strcasecmp (key, "preload"))
|
else if (!g_ascii_strcasecmp (key, "preload"))
|
||||||
{
|
{
|
||||||
if (*has_preload || val)
|
if (val)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (*has_preload)
|
||||||
{
|
{
|
||||||
g_strfreev (tokens);
|
g_strfreev (tokens);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user