зеркало из https://github.com/mozilla/gecko-dev.git
making patch for bug 120959 [Use of ".." in address causes links to
relative URL's to fail] a little bit prettier (remove unnecessary clause), r=brendan, sr=darin
This commit is contained in:
Родитель
7145919250
Коммит
820d1d97ea
|
@ -327,7 +327,7 @@ nsBaseURLParser::ParseFilePath(const char *filepath, PRInt32 filepathLen,
|
|||
if (*p == '/') {
|
||||
// catch /.. and /.
|
||||
if ((p+1 < end && *(p+1) == '.') &&
|
||||
(p+2 == end || (p+2 < end && *(p+2) == '.' && p+3 == end)))
|
||||
(p+2 == end || (*(p+2) == '.' && p+3 == end)))
|
||||
p = end - 1;
|
||||
// filepath = <directory><filename>.<extension>
|
||||
SET_RESULT(directory, 0, p - filepath + 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче