From 8b173290a1b4a0d879d2c9232668d485ab74887a Mon Sep 17 00:00:00 2001 From: "jshin%mailaps.org" Date: Wed, 29 Mar 2006 17:14:07 +0000 Subject: [PATCH] bug 332123: ] nsLocalFileWin::AppendRelativeNativePath broken with multiple path components r/sr=darin --- xpcom/io/nsLocalFileWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 4b03a9e8bbd3..cc3a07f91640 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -1128,7 +1128,7 @@ nsLocalFile::AppendInternal(const nsAFlatString &node, PRBool multipleComponents // check the relative path for validity if (node.First() == L'\\' // can't start with an '\' - || node.FindChar(L'\\') != kNotFound // can't contain / + || node.FindChar(L'/') != kNotFound // can't contain / || node.EqualsASCII("..")) // can't be .. return NS_ERROR_FILE_UNRECOGNIZED_PATH;