openrat-cms

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

commit d5ec7591f5289903c7c95b36c37abb6ba3959b16
parent 8160b34896691ec13dc1eff5928dc5e700c91013
Author: dankert <devnull@localhost>
Date:   Mon,  5 Nov 2007 21:46:25 +0100

HTML-Tags von "edit_url" und "edit_fullurl" nicht umsetzen.

Diffstat:
objectClasses/Value.class.php | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/objectClasses/Value.class.php b/objectClasses/Value.class.php @@ -920,6 +920,7 @@ SQL if ( $this->page->simple ) break; + $raw = false; switch( $this->element->subtype ) { case 'db_id': @@ -968,10 +969,12 @@ SQL $inhalt = ''; break; case 'edit_url': + $raw = true; $db = Session::getDatabase(); $inhalt = Html::url('index','object',$this->page->objectid,array('dbid'=>$db->id)); break; case 'edit_fullurl': + $raw = true; $inhalt = Http::getServer(); $db = Session::getDatabase(); $params = array('dbid' =>$db->id, @@ -1064,8 +1067,10 @@ SQL 'unknown subtype:'.$this->element->subtype); // Keine Fehlermeldung in erzeugte Seite schreiben. } - - $inhalt = Text::encodeHtml( $inhalt ); + + if ( !$raw ) + $inhalt = Text::encodeHtml( $inhalt ); + break; default: