svn: /pear2/sandbox/ SimpleChannelFrontend/trunk/www/templates/Package.tpl.php pear2.php.net/trunk/templates/pear2/Package.tpl.php

From: Date: Fri, 18 Dec 2009 14:52:47 +0000
Subject: svn: /pear2/sandbox/ SimpleChannelFrontend/trunk/www/templates/Package.tpl.php pear2.php.net/trunk/templates/pear2/Package.tpl.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9127@lists.php.net to get a copy of this message
saltybeagle Fri, 18 Dec 2009 14:52:47 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292290 Log: Keep the output escaping. We can get around using the raw variable. Changed paths: U pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php U pear2/sandbox/pear2.php.net/trunk/templates/pear2/Package.tpl.php Modified: pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php =================================================================== --- pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-18 14:45:02 UTC (rev 292289) +++ pear2/sandbox/SimpleChannelFrontend/trunk/www/templates/Package.tpl.php 2009-12-18 14:52:47 UTC (rev 292290) @@ -8,7 +8,7 @@ <p><em><?php echo $context->summary; ?></em></p> <p> <?php - $description = preg_replace("|<\?php(.*)\?\>|Use", "highlight_string('<?php\\1?>', true)", trim($context->getRaw('description'))); + $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", "highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", $context->description); echo nl2br($description); ?> </p> Modified: pear2/sandbox/pear2.php.net/trunk/templates/pear2/Package.tpl.php =================================================================== --- pear2/sandbox/pear2.php.net/trunk/templates/pear2/Package.tpl.php 2009-12-18 14:45:02 UTC (rev 292289) +++ pear2/sandbox/pear2.php.net/trunk/templates/pear2/Package.tpl.php 2009-12-18 14:52:47 UTC (rev 292290) @@ -8,7 +8,7 @@ <p><em><?php echo $context->summary; ?></em></p> <p> <?php - $description = preg_replace("|<\?php(.*)\?\>|Use", "highlight_string('<?php\\1?>', true)", trim($context->getRaw('description'))); + $description = preg_replace("|\&lt\;\?php(.*)\?\&gt\;|Use", "highlight_string('<?php'.html_entity_decode('\\1').'?>', true)", $context->description); echo nl2br($description); ?> </p>

« previous php.pear.core (#9127) next »