cvs: pear /Text_Wiki/Text/Wiki/Render Xhtml.php

From: Date: Mon, 30 May 2005 13:37:48 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Render Xhtml.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32244@lists.php.net to get a copy of this message
pmjones Mon May 30 09:37:48 2005 EDT Modified files: /pear/Text_Wiki/Text/Wiki/Render Xhtml.php Log: fixed bug 4474 to silence calls to htmlentities and htmlspecialchars so that errors about charsets don't pop up, per counsel from Jan at Horde. http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml.php?r1=1.5&r2=1.6&ty=u Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml.php diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml.php:1.5 pear/Text_Wiki/Text/Wiki/Render/Xhtml.php:1.6 --- pear/Text_Wiki/Text/Wiki/Render/Xhtml.php:1.5 Sat May 28 16:45:34 2005 +++ pear/Text_Wiki/Text/Wiki/Render/Xhtml.php Mon May 30 09:37:47 2005 @@ -23,8 +23,10 @@ // so we can convert it back. $new_delim = htmlentities($this->wiki->delim, $quotes, $charset); - // convert the entities - $this->wiki->source = htmlentities( + // convert the entities. we silence the call here so that + // errors about charsets don't pop up, per counsel from + // Jan at Horde. (http://pear.php.net/bugs/bug.php?id=4474) + $this->wiki->source = @htmlentities( $this->wiki->source, $quotes, $charset @@ -42,8 +44,10 @@ $new_delim = htmlspecialchars($this->wiki->delim, $quotes, $charset); - // convert the special chars - $this->wiki->source = htmlspecialchars( + // convert the entities. we silence the call here so that + // errors about charsets don't pop up, per counsel from + // Jan at Horde. (http://pear.php.net/bugs/bug.php?id=4474) + $this->wiki->source = @htmlspecialchars( $this->wiki->source, $quotes, $charset

« previous php.pear.cvs (#32244) next »