Update of /cvsroot/php-blog/serendipity/bundled-libs/Text/Wiki/Rule
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16673/bundled-libs/Text/Wiki/Rule
Modified Files:
Tag: branch_0_6
code.php
Log Message:
Use Content-Type headers for all pages (including admin area).
Use htmlspecialchars() instead of htmlentities() to not encode native characters.
Index: code.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/bundled-libs/Text/Wiki/Rule/code.php,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -u -d -r1.1 -r1.1.4.1
--- code.php 26 Feb 2004 11:27:54 -0000 1.1
+++ code.php 7 Apr 2004 12:38:18 -0000 1.1.4.1
@@ -95,7 +95,7 @@
$text = str_replace("\t", " ", $text);
// convert entities
- $text = htmlentities($text);
+ $text = htmlspecialchars($text);
// done!
return "\n<pre><code>$text</code></pre>\n";
|