cvs: phpweb / results.php

From: Date: Wed, 19 Mar 2008 13:25:22 +0000
Subject: cvs: phpweb / results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1332@lists.php.net to get a copy of this message
bjori Wed Mar 19 13:25:22 2008 UTC Modified files: /phpweb results.php Log: Fixed bug#41047 (search results double-escaping entities) http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.37&r2=1.38&diff_format=u Index: phpweb/results.php diff -u phpweb/results.php:1.37 phpweb/results.php:1.38 --- phpweb/results.php:1.37 Wed Mar 19 13:03:00 2008 +++ phpweb/results.php Wed Mar 19 13:25:22 2008 @@ -1,5 +1,5 @@ <?php -// $Id: results.php,v 1.37 2008/03/19 13:03:00 bjori Exp $ +// $Id: results.php,v 1.38 2008/03/19 13:25:22 bjori Exp $ $_SERVER['BASE_PAGE'] = 'results.php'; include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; #include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc'; @@ -134,10 +134,13 @@ 'doc'=>'<img src="http://static.php.net/www.php.net/images/logos/php-icon-white.gif" height="32" width="32" style="float:left; margin-left:-40px;"/>', 'bugs'=>'<img src="http://static.php.net/www.php.net/images/php_bug.gif" height="32" width="32" style="float:left; margin-left:-40px;"/>' ); + // These strings are apparently double escaped + $summary = html_entity_decode($hit['Summary'], ENT_NOQUOTES, "UTF-8"); + $display_title = html_entity_decode($display_title, ENT_NOQUOTES, "UTF-8"); echo <<<EOB <li> <p class="result">{$types[$type]}<a href="{$real_url}">{$display_title}</a></p> - <p class="summary">{$hit['Summary']}</p> + <p class="summary">{$summary}</p> <p class="meta">{$displayurl} - {$d}{$size}{$cachelink}</p> </li> EOB;

« previous php.webmaster (#1332) next »