svn: /web/php/trunk/ quickref.php

From: Date: Sat, 16 Jul 2011 07:07:46 +0000
Subject: svn: /web/php/trunk/ quickref.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-11654@lists.php.net to get a copy of this message
rasmus Sat, 16 Jul 2011 07:07:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313276 Log: Don't send proxy attempts through the backend web search Changed paths: U web/php/trunk/quickref.php Modified: web/php/trunk/quickref.php =================================================================== --- web/php/trunk/quickref.php 2011-07-16 06:51:35 UTC (rev 313275) +++ web/php/trunk/quickref.php 2011-07-16 07:07:46 UTC (rev 313276) @@ -151,7 +151,8 @@ <?php quickref_table($maybe, false); ?> <?php -if(strlen($notfound) > 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);

« previous php.webmaster (#11654) next »