From fadd9179fa9a9fb39a5a76dfe69b09c75e5da895 Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Thu, 22 Feb 2001 23:52:26 +0000 Subject: [PATCH] Fixes 53152. Basically loosens the restrictions on appending relative paths on windows. r=brendan/shaver,sr=alecf --- xpcom/io/nsLocalFileWin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index a35601b7a6e..63b315aaa65 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -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; }