OSX compat tweak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30622 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-06-08 16:53:30 +00:00
parent d6a8521c5e
commit 81620f8d4e
2 changed files with 9 additions and 0 deletions

View file

@ -1082,6 +1082,10 @@ static unsigned urlAlign;
* Store the path.
*/
buf->path = start;
if (0 == base && '\0' == *buf->path && NO == buf->pathIsAbsolute)
{
buf->hasNoPath = YES;
}
if (legal(buf->path, reserved) == NO)
{
[NSException raise: NSInvalidArgumentException