Skip to content
This repository was archived by the owner on Mar 10, 2019. It is now read-only.

Commit ab419eb

Browse files
committed
use more sane escaping
1 parent cd217ae commit ab419eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LPURLPostRequest.j

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
var content = @"";
6060

6161
for (key in anObject)
62-
content = [content stringByAppendingString:[CPString stringWithFormat:@"%s=%s&", key, shouldEscape ? escape(anObject[key]) : anObject[key]]];
62+
content = [content stringByAppendingString:[CPString stringWithFormat:@"%s=%s&", key, shouldEscape ? encodeURIComponent(anObject[key]) : anObject[key]]];
6363

6464
// Remove trailing &
6565
content = [content substringToIndex:[content length] - 1];

0 commit comments

Comments
 (0)