mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-12 03:40:46 +00:00
#3127 properly parse the theme query
This commit is contained in:
1 parent
8cb9d7b79c
commit
ae77e63d82
3 files changed
+19
-1
No files matched your search
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user