openrat-cms

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

commit 92d3f2d91a12c6e85d2b32990ce24643cc08cf53
parent 5d747f5ed95755191818c23b3a1d4b633fa86764
Author: dankert <devnull@localhost>
Date:   Fri, 26 Jun 2009 01:10:24 +0200

Bei der Eingabe von Texten sind alle Zeichen erlaubt.

Diffstat:
actionClasses/PageelementAction.class.php | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/actionClasses/PageelementAction.class.php b/actionClasses/PageelementAction.class.php @@ -76,7 +76,7 @@ class PageelementAction extends Action if ( $this->hasRequestVar('elementid') ) { - $this->element = new Element( $this->getRequestVar('elementid') ); + $this->element = new Element( $this->getRequestVar('elementid','num') ); Session::setElement( $this->element ); } else @@ -839,7 +839,7 @@ class PageelementAction extends Action if ( $this->hasRequestVar('linkobjectid') ) $value->linkToObjectId = $this->getRequestVar('linkobjectid'); else - $value->text = $this->getRequestVar('text'); + $value->text = $this->getRequestVar('text','raw'); $this->afterSave($value); } @@ -934,13 +934,13 @@ class PageelementAction extends Action if ( $this->hasRequestVar('linkobjectid') ) $value->linkToObjectId = $this->getRequestVar('linkobjectid'); else - $value->text = $this->convertOIDs( $this->getRequestVar('text') ); + $value->text = $this->convertOIDs( $this->getRequestVar('text','raw') ); // Vorschau anzeigen if ( $this->hasRequestVar('preview' ) || $this->hasRequestVar('addmarkup') ) { - $inputText = $this->getRequestVar('text'); + $inputText = $this->getRequestVar('text','raw'); if ( $this->hasRequestVar('preview') ) { @@ -958,7 +958,7 @@ class PageelementAction extends Action if ( $this->hasRequestVar('addtext') ) // Nur, wenn ein Text eingegeben wurde { - $addText = $this->getRequestVar('addtext'); + $addText = $this->getRequestVar('addtext','raw'); if ( $this->hasRequestVar('strong') ) $inputText .= $conf_tags['strong-begin'].$addText.$conf_tags['strong-end'];