cvs: phpweb / results.php ws.php

From: Date: Wed, 19 Mar 2008 13:03:00 +0000
Subject: cvs: phpweb / results.php ws.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1329@lists.php.net to get a copy of this message
bjori Wed Mar 19 13:03:00 2008 UTC Modified files: /phpweb ws.php results.php Log: Honest attempt to fix bug#41475 http://cvs.php.net/viewvc.cgi/phpweb/ws.php?r1=1.8&r2=1.9&diff_format=u Index: phpweb/ws.php diff -u phpweb/ws.php:1.8 phpweb/ws.php:1.9 --- phpweb/ws.php:1.8 Wed Feb 28 14:28:55 2007 +++ phpweb/ws.php Wed Mar 19 13:03:00 2008 @@ -25,7 +25,7 @@ $scope = 'all'; } -$request = "{$conf['svc']}?appid={$conf['appid']}&query=$q&start=$s&results=$r&site={$sites[$scope]}&language=$l&output=php"; +$request = "{$conf['svc']}?appid={$conf['appid']}&amp;query=$q&amp;start=$s&amp;results=$r&amp;site={$sites[$scope]}&amp;language=$l&amp;output=php"; $data = @file_get_contents($request); list($version,$status_code,$msg) = explode(' ',$http_response_header[0], 3); if($status_code==200) echo $data; http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.36&r2=1.37&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.36 phpweb/results.php:1.37 --- phpweb/results.php:1.36 Wed Mar 19 12:50:10 2008 +++ phpweb/results.php Wed Mar 19 13:03:00 2008 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.36 2008/03/19 12:50:10 bjori Exp $ +// $Id: results.php,v 1.37 2008/03/19 13:03:00 bjori Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -42,7 +42,7 @@ $valid_profiles = array('all', 'local', 'manual', 'news', 'bugs', 'pear', 'pecl', 'talks'); $scope = in_array($profile, $valid_profiles) ? $profile : 'all'; $srch_host = "www.php.net"; -$srch_rqst = "/ws.php?profile=$scope&q=$q&lang=$l&results=$per_page&start=$s&mirror=".trim(substr($MYSITE,7),'/'); +$srch_rqst = "/ws.php?profile=$scope&q=$q&amp;lang=$l&results=$per_page&start=$s&mirror=".trim(substr($MYSITE,7),'/'); $url = "http://".$srch_host.$srch_rqst; if(function_exists('file_get_contents') && ini_get('allow_url_fopen')) {

« previous php.webmaster (#1329) next »