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