diff -ru trunk.orig/typo3/mod/user/ws/class.wslib_gui.php trunk.new/typo3/mod/user/ws/class.wslib_gui.php --- trunk.orig/typo3/mod/user/ws/class.wslib_gui.php 2008-04-07 23:08:37.000000000 +0400 +++ trunk.new/typo3/mod/user/ws/class.wslib_gui.php 2008-04-08 16:19:14.000000000 +0400 @@ -1257,7 +1257,7 @@ if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand( '&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'. '&cmd['.$table.']['.$rec_off['uid'].'][version][stageId]=-1' - ).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+escape(commentTxt);}'. + ).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+encodeURIComponent(commentTxt);}'. ' return false;'; // Reject: $actionLinks.= @@ -1279,7 +1279,7 @@ if (commentTxt!=null) {window.location.href="'.$this->doc->issueCommand( '&cmd['.$table.']['.$rec_off['uid'].'][version][action]=setStage'. '&cmd['.$table.']['.$rec_off['uid'].'][version][stageId]='.$sId - ).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+escape(commentTxt);}'. + ).'&cmd['.$table.']['.$rec_off['uid'].'][version][comment]="+encodeURIComponent(commentTxt);}'. ' return false;'; if ($rec_off['t3ver_stage']!=10) { $actionLinks.=