1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Honest attempt to fix bug#41475

This commit is contained in:
Hannes Magnusson
2008-03-19 13:03:00 +00:00
parent fd27c2f13c
commit 37570e9398
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ $per_page = 10;
$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&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')) {