diff --git a/quickref.php b/quickref.php index 4343566e8..98e10330d 100644 --- a/quickref.php +++ b/quickref.php @@ -151,7 +151,8 @@ $notfound_enc = urlencode($notfound_sc); 2): +// Don't do a web search if the search term contains tp:// since we are seeing a lot of proxy attempts through the 404 handler +if(strlen($notfound) > 2 && !strstr($notfound,'tp://')): $srch_rqst = "/ws.php?profile=$scope&q=".urlencode($notfound)."&lang=$LANG&results=5&start=0&mirror=".trim(substr($MYSITE,7),'/'); $url = "http://www.php.net".$srch_rqst; $data = fetch_contents($url);