mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
bug 708453 - escape URLs before constructing NSURL. r=smichaud
This commit is contained in:
parent
f045cb0b7d
commit
be9c5a1b76
@ -588,7 +588,7 @@ static bool RestartApplication()
|
||||
|
||||
-(bool)setupPost
|
||||
{
|
||||
NSURL* url = [NSURL URLWithString:NSSTR(gSendURL)];
|
||||
NSURL* url = [NSURL URLWithString:[NSSTR(gSendURL) stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
|
||||
if (!url) return false;
|
||||
|
||||
mPost = [[HTTPMultipartUpload alloc] initWithURL: url];
|
||||
|
Loading…
Reference in New Issue
Block a user