bug 332123: ] nsLocalFileWin::AppendRelativeNativePath broken with multiple path components r/sr=darin

This commit is contained in:
jshin%mailaps.org 2006-03-29 17:14:07 +00:00
parent 56aecfcb04
commit 8b173290a1

View File

@ -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;