mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
use the Matrix SDK's method for percent encoding
This commit is contained in:
@@ -104,20 +104,20 @@ NSString *const kIntegrationManagerAddIntegrationScreen = @"add_integ";
|
||||
{
|
||||
url = [NSMutableString stringWithFormat:@"%@?scalar_token=%@&room_id=%@",
|
||||
[[NSUserDefaults standardUserDefaults] objectForKey:@"integrationsUiUrl"],
|
||||
[scalarToken stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]],
|
||||
[roomId stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]
|
||||
[MXTools encodeURIComponent:scalarToken],
|
||||
[MXTools encodeURIComponent:roomId]
|
||||
];
|
||||
|
||||
if (screen)
|
||||
{
|
||||
[url appendString:@"&screen="];
|
||||
[url appendString:[screen stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]];
|
||||
[url appendString:[MXTools encodeURIComponent:screen]];
|
||||
}
|
||||
|
||||
if (widgetId)
|
||||
{
|
||||
[url appendString:@"&integ_id="];
|
||||
[url appendString:[widgetId stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]];
|
||||
[url appendString:[MXTools encodeURIComponent:widgetId]];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user