Fixes 53152. Basically loosens the restrictions on appending relative paths on windows.

r=brendan/shaver,sr=alecf
This commit is contained in:
dougt@netscape.com
2001-02-22 23:52:26 +00:00
parent 3cafe3b998
commit 545a93c69c

View File

@@ -753,8 +753,7 @@ NS_IMETHODIMP
nsLocalFile::AppendRelativePath(const char *node)
{
// Cannot start with a / or have .. or have / anywhere
if (!node || (*node == '/') || (strstr(node, "..") != nsnull) ||
(strchr(node, '/') != nsnull))
if (!node || strchr(node, '/'))
{
return NS_ERROR_FILE_UNRECOGNIZED_PATH;
}