<?
defined('C5_EXECUTE') or die(_("Access Denied."));

$previewCID = Loader::helper('security')->sanitizeInt($_REQUEST['previewCID']);
$url = Loader::helper('concrete/urls')->getToolsURL('/composer/preview');
$url = Loader::helper('url')->setVariable('previewCID', $previewCID, $url);
?>
<iframe id="previewComposerDraft<?=time()?>" height="100%" style="width:100%; border:0px; " src="<?=$url?>"></iframe>

<?defined('C5_EXECUTE') or die(_("Access Denied."));

$url = REL_DIR_FILES_TOOLS_REQUIRED."/composer/preview?previewCID=".$_REQUEST['previewCID'];
?>
<iframe id="previewComposerDraft<?=time()?>" height="100%" style="width:100%; border:0px; " src="<?=$url?>"></iframe>


--- 
+++ 
@@ -1,6 +1,8 @@
-<?defined('C5_EXECUTE') or die(_("Access Denied."));
+<?
+defined('C5_EXECUTE') or die(_("Access Denied."));
 
-$url = REL_DIR_FILES_TOOLS_REQUIRED."/composer/preview?previewCID=".$_REQUEST['previewCID'];
+$previewCID = Loader::helper('security')->sanitizeInt($_REQUEST['previewCID']);
+$url = Loader::helper('concrete/urls')->getToolsURL('/composer/preview');
+$url = Loader::helper('url')->setVariable('previewCID', $previewCID, $url);
 ?>
 <iframe id="previewComposerDraft<?=time()?>" height="100%" style="width:100%; border:0px; " src="<?=$url?>"></iframe>
-
Update Preview Frame Tools File

Update preview frame tools file with concrete5 library methods


Former-commit-id: bc4bc39ab801025b17230d582670f2d71e8b9996