Fixes 53152. Basically loosens the restrictions on appending relative paths on windows.

r=brendan/shaver,sr=alecf
This commit is contained in:
dougt%netscape.com 2001-02-22 23:52:26 +00:00
Родитель a4f1f9d564
Коммит 59314de5ee
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -753,8 +753,7 @@ NS_IMETHODIMP
nsLocalFile::AppendRelativePath(const char *node) nsLocalFile::AppendRelativePath(const char *node)
{ {
// Cannot start with a / or have .. or have / anywhere // Cannot start with a / or have .. or have / anywhere
if (!node || (*node == '/') || (strstr(node, "..") != nsnull) || if (!node || strchr(node, '/'))
(strchr(node, '/') != nsnull))
{ {
return NS_ERROR_FILE_UNRECOGNIZED_PATH; return NS_ERROR_FILE_UNRECOGNIZED_PATH;
} }