bug 708453 - escape URLs before constructing NSURL. r=smichaud

This commit is contained in:
Ted Mielczarek 2011-12-08 18:08:07 -05:00
parent f045cb0b7d
commit be9c5a1b76

View File

@ -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];