mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix for #29764
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e65fa396b5
commit
6c9a892c54
3 changed files with 14 additions and 4 deletions
|
@ -1,4 +1,11 @@
|
|||
2010-05-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
2010-05-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSHTTPURLHandle.m:
|
||||
* Source/NSURLProtocol.m:
|
||||
Fix for bug #29764 ... add percent escapes to the path when generating
|
||||
the URI in the HTTP request.
|
||||
|
||||
2010-05-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/Tools/gdomap.c: security updates.
|
||||
* Tools/Makefile.postamble: make warning messages a bit clearer and
|
||||
|
|
|
@ -900,7 +900,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
if (debug)
|
||||
NSLog(@"%@ %p %s", NSStringFromSelector(_cmd), self, keepalive?"K":"");
|
||||
|
||||
path = [[u fullPath] stringByTrimmingSpaces];
|
||||
path = [[[u fullPath] stringByTrimmingSpaces]
|
||||
stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
|
||||
if ([path length] == 0)
|
||||
{
|
||||
path = @"/";
|
||||
|
@ -1487,7 +1488,8 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
method = @"GET";
|
||||
}
|
||||
}
|
||||
path = [[u fullPath] stringByTrimmingSpaces];
|
||||
path = [[[u fullPath] stringByTrimmingSpaces]
|
||||
stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
|
||||
if ([path length] == 0)
|
||||
{
|
||||
path = @"/";
|
||||
|
|
|
@ -1275,7 +1275,8 @@ static NSURLProtocol *placeholder = nil;
|
|||
[m appendString: [this->request HTTPMethod]];
|
||||
[m appendString: @" "];
|
||||
u = [this->request URL];
|
||||
s = [u fullPath];
|
||||
s = [[u fullPath] stringByAddingPercentEscapesUsingEncoding:
|
||||
NSUTF8StringEncoding];
|
||||
if ([s hasPrefix: @"/"] == NO)
|
||||
{
|
||||
[m appendString: @"/"];
|
||||
|
|
Loading…
Reference in a new issue