cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Preformatted.php
| From: | Michele Tomaiuolo | Date: | Wed, 07 Feb 2007 13:40:44 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Preformatted.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44573@lists.php.net to get a copy of this message | ||
mic Wed Feb 7 13:40:44 2007 UTC
Modified files:
/pear/Text_Wiki/Text/Wiki/Render/Xhtml Preformatted.php
Log:
output goes through textEncode
http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php
diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php:1.2
pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php:1.3
--- pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php:1.2 Sat Jul 30 08:03:29 2005
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/Preformatted.php Wed Feb 7 13:40:44 2007
@@ -9,7 +9,7 @@
* @package Text_Wiki
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Preformatted.php,v 1.2 2005/07/30 08:03:29 toggg Exp $
+ * @version CVS: $Id: Preformatted.php,v 1.3 2007/02/07 13:40:44 mic Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -40,7 +40,8 @@
function token($options)
{
- return '<pre>'.$options['text'].'</pre>';
+ $text = $this->textEncode($options['text']);
+ return '<pre>'.$text.'</pre>';
}
}
?>