From b1fe7b091b8ce6765b7914f2088a499e9f00aadc Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jul 2015 13:34:54 +0200 Subject: [PATCH] Wiki code on Thank You page --- syntax.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/syntax.php b/syntax.php index 4a64e47..5776204 100644 --- a/syntax.php +++ b/syntax.php @@ -204,11 +204,12 @@ public function render($format, Doku_Renderer $R, $data) { if(isset($_POST['bureaucracy']) && checkSecurityToken() && $_POST['bureaucracy']['$$id'] == $this->form_id) { $success = $this->_handlepost($data); if($success !== false) { - $R->doc .= '
' . $success . '
'; + //$R->doc .= '
' . $success . '
'; + $split = strpos($success, "doc = '
'.$R->render_text(substr($success,0,$split)).'
'.substr($success,$split); return true; } } - $R->doc .= $this->_htmlform($data['fields']); return true; @@ -316,7 +317,7 @@ private function _handlepost($data) { } $thanks_array = array(); - + foreach($data['actions'] as $actionData) { /** @var helper_plugin_bureaucracy_action $action */ $action = $this->loadHelper($actionData['actionname'], false); @@ -343,13 +344,13 @@ private function _handlepost($data) { foreach($data['fields'] as $field) { $field->after_action(); } - + // create thanks string $thanks = ''; foreach(array_unique($thanks_array) as $thanks_string) { - $thanks .= '

' . $thanks_string . '

'; + $thanks .= html_entity_decode($thanks_string); } - + return $thanks; }