Skip to content

Commit

Permalink
Fixed preg_match() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lux committed Oct 13, 2010
1 parent 4b5b52a commit 3993c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saf/lib/Misc/Search.php
Expand Up @@ -124,7 +124,7 @@ function get_searchengine_keywords ($referer) {
preg_match("'(\?|&)q=(.*?)(&|$)'si", " $url ", $keywords);
}
// Yahoo
if ((preg_match("/yahoo\.com/i",$url)) or (preg_match("search\.yahoo",$url))) {
if ((preg_match("/yahoo\.com/i",$url)) or (preg_match("/search\.yahoo/i",$url))) {
preg_match("'(\?|&)p=(.*?)(&|$)'si", " $url ", $keywords);
}
// Looksmart
Expand Down

0 comments on commit 3993c82

Please sign in to comment.