From bf3831c9d927634b79caa863fcd56682d0a334ad Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 16 Jul 2011 07:07:46 +0000 Subject: [PATCH] Don't send proxy attempts through the backend web search --- quickref.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);