Skip to content

Commit

Permalink
Old widget postMessage escape string
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Dec 27, 2021
1 parent 1628920 commit 1f67cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lhc_web/design/defaulttheme/tpl/pagelayouts/widget.php
Expand Up @@ -64,11 +64,11 @@
parent.postMessage("lhc_ch:hash_resume:<?php echo $Result['chat']->id,'_',$Result['chat']->hash?>", '*');
<?php endif; ?>
<?php if (isset($Result['additional_post_message'])) : ?>
parent.postMessage("<?php echo $Result['additional_post_message']?>", '*');
parent.postMessage(<?php echo json_encode($Result['additional_post_message'])?>, '*');
<?php endif;?>
<?php if (isset($Result['parent_messages'])) :
foreach ($Result['parent_messages'] as $msgPArent) : ?>
parent.postMessage("<?php echo $msgPArent?>", '*');
parent.postMessage(<?php echo json_encode($msgPArent)?>, '*');
<?php endforeach;endif;?>

function handleCrossMessage(e) {
Expand Down

0 comments on commit 1f67cf9

Please sign in to comment.