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 git-svn-id: svn://10.0.0.236/trunk@113437 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user