mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fix NS_WildCardMatch to actually pay attention to the case_insensitive
arg. Bug 146187, r=sicking, sr=shaver
This commit is contained in:
parent
8620785718
commit
903e648a7e
@ -280,7 +280,7 @@ NS_WildCardMatch(char *str, char *xp, PRBool case_insensitive) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(_shexp_match(str,expr, PR_FALSE) == MATCH) {
|
||||
if(_shexp_match(str,expr, case_insensitive) == MATCH) {
|
||||
PR_Free(expr);
|
||||
return 0;
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ NS_WildCardMatch(const PRUnichar *str, const PRUnichar *xp,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(_shexp_match(str,expr, PR_FALSE) == MATCH) {
|
||||
if(_shexp_match(str,expr, case_insensitive) == MATCH) {
|
||||
PR_Free(expr);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user