зеркало из https://github.com/mozilla/pjs.git
Fixes 53152. Basically loosens the restrictions on appending relative paths on windows.
r=brendan/shaver,sr=alecf
This commit is contained in:
Родитель
792da52ffc
Коммит
fadd9179fa
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче