openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c59f5a09a08838914f93fd0556674c29c3a43548
parent ff77806718e72da1528f7b6eade15124d27b791f
Author: Jan Dankert <devnull@localhost>
Date:   Sat, 19 Nov 2011 03:01:55 +0100

Maskierung von UTF-8 in HTML. So ist die Seite unabhängig von der Ausgabe-Kodierung.

Diffstat:
model/Page.class.php | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/model/Page.class.php b/model/Page.class.php @@ -738,10 +738,14 @@ class Page extends Object if ( config('publish','escape_8bit_characters') ) if ( substr($this->mimeType(),-4) == 'html' ) { + /* + * $src = htmlentities($src,ENT_NOQUOTES,'UTF-8'); $src = str_replace('&lt;' , '<', $src); $src = str_replace('&gt;' , '>', $src); $src = str_replace('&amp;', '&', $src); + */ + $src = translateutf8tohtml($src); } $this->value = &$src;