cvs: phpweb / results.php
| From: | Hannes Magnusson | Date: | Wed, 19 Mar 2008 11:31:33 +0000 |
| Subject: | cvs: phpweb / results.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1316@lists.php.net to get a copy of this message | ||
bjori Wed Mar 19 11:31:33 2008 UTC
Modified files:
/phpweb results.php
Log:
Fixed bug#43940 (search to & character bug)
http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.31&r2=1.32&diff_format=u
Index: phpweb/results.php
diff -u phpweb/results.php:1.31 phpweb/results.php:1.32
--- phpweb/results.php:1.31 Fri Jan 11 11:28:57 2008
+++ phpweb/results.php Wed Mar 19 11:31:33 2008
@@ -1,5 +1,5 @@
<?php
-// $Id: results.php,v 1.31 2008/01/11 11:28:57 bjori Exp $
+// $Id: results.php,v 1.32 2008/03/19 11:31:33 bjori Exp $
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
#include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
@@ -39,7 +39,7 @@
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
- } else if(function_exists('fsockopen') && $fd = fsockopen($srch_host, 80)) {
+ } else if(function_exists('fsockopen') && $fd = @fsockopen($srch_host, 80,
$errno, $errstr, 15)) {
$data = ''; $header = false;
fputs($fd,"GET $srch_rqst HTTP/1.0\r\n");
fputs($fd,"Host: $srch_host\r\n");
@@ -60,12 +60,14 @@
if (!is_array($res)) {
echo '<h2>Internal error, please try later</h2>';
+ site_footer();
exit;
}
// No results for query
if ($res['ResultSet']['totalResultsAvailable'] == 0) {
echo '<h2>No pages matched your query</h2>';
+ site_footer();
exit;
}