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

git-svn-id: svn://10.0.0.236/trunk@193198 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jshin%mailaps.org 2006-03-29 17:14:07 +00:00
parent acf04d8afb
commit cf055041ee

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;