#3127 properly parse the theme query

This commit is contained in:
Hivert Quentin committed 2026-11-11 20:33:09 +01:00
1 parent 8cb9d7b79c
commit ae77e63d82
3 files changed
+19 -1

No files matched your search

+15
View File
@@ -107,6 +107,21 @@ static const NSString *kJwtKey = @"jwt";
return cookieLogin;
}
/* JavaScript string literal of the cookie username, safe to write inside a
<script> element: '<', '>' and '&' are escaped so the value can't close
the element. */
- (NSString *) cookieUsernameAsJSString
{
NSString *value;
value = [[self cookieUsername] doubleQuotedString];
value = [value stringByReplacingString: @"<" withString: @"\\u003c"];
value = [value stringByReplacingString: @">" withString: @"\\u003e"];
value = [value stringByReplacingString: @"&" withString: @"\\u0026"];
return value;
}
- (BOOL) rememberLogin
{
return ([[self cookieUsername] length]);