mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
bug 332123: ] nsLocalFileWin::AppendRelativeNativePath broken with multiple path components r/sr=darin
This commit is contained in:
parent
56aecfcb04
commit
8b173290a1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user