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)
{
// 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;
}