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