From: <jon...@us...> - 2011-03-24 16:59:35
|
Revision: 33626 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=33626&view=rev Author: jonnybradley Date: 2011-03-24 16:59:28 +0000 (Thu, 24 Mar 2011) Log Message: ----------- [bp/none][FIX] auto_save/preview: Quick fix for wysiwyg preview getting htmlspecialchars encoded as there is no allowHtml checkbox when in wysiwyg mode. Not needed in trunk due to changes in parse_data that takes care of decoding downstream. Modified Paths: -------------- branches/proposals/6.x/tiki-auto_save.php Modified: branches/proposals/6.x/tiki-auto_save.php =================================================================== --- branches/proposals/6.x/tiki-auto_save.php 2011-03-24 16:31:51 UTC (rev 33625) +++ branches/proposals/6.x/tiki-auto_save.php 2011-03-24 16:59:28 UTC (rev 33626) @@ -51,7 +51,7 @@ $res = $editlib->parseToWysiwyg(urldecode($_REQUEST['data'])); } else if ($_REQUEST['command'] == 'auto_save') { include_once 'lib/ajax/autosave.php'; - $data = $_REQUEST['allowHtml'] ? $_REQUEST['data'] : htmlspecialchars($_REQUEST['data']); + $data = $_REQUEST['allowHtml'] || $_SESSION['wysiwyg'] === 'y' ? $_REQUEST['data'] : htmlspecialchars($_REQUEST['data']); $res = auto_save( $_REQUEST['editor_id'], $data, $_REQUEST['referer'] ); } else if ($_REQUEST['command'] == 'auto_remove') { include_once 'lib/ajax/autosave.php'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |