mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
URL percent escape query items.
This commit is contained in:
parent
21036dd695
commit
a92491268b
1 changed files with 2 additions and 1 deletions
|
@ -2485,7 +2485,8 @@ GS_PRIVATE_INTERNAL(NSURLComponents)
|
|||
{
|
||||
NSString *n = [qi name];
|
||||
NSString *v = [qi value];
|
||||
urlString = [urlString stringByAppendingFormat: @"%@=%@", n, v];
|
||||
NSString *item = [[NSString stringWithFormat: @"%@=%@", n, v] _stringByAddingPercentEscapes];
|
||||
urlString = [urlString stringByAppendingString: item];
|
||||
if (qi != [internal->_queryItems lastObject])
|
||||
{
|
||||
urlString = [urlString stringByAppendingString: @"&"];
|
||||
|
|
Loading…
Reference in a new issue