Skip to content

Commit

Permalink
Merge pull request from GHSA-grj5-8fcj-34gh
Browse files Browse the repository at this point in the history
  • Loading branch information
Beuc committed Apr 7, 2024
1 parent 777f362 commit 9c75f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions.php
Expand Up @@ -1050,8 +1050,8 @@ function raise_message($message_id, $message = '', $message_level = MESSAGE_LEVE
function raise_message_javascript($title, $header, $message) {
?>
<script type='text/javascript'>
var mixedReasonTitle = DOMPurify.sanitize('<?php print $title;?>');
var mixedOnPage = DOMPurify.sanitize('<?php print $header;?>');
var mixedReasonTitle = DOMPurify.sanitize(<?php print json_encode($title, JSON_THROW_ON_ERROR);?>);
var mixedOnPage = DOMPurify.sanitize(<?php print json_encode($header, JSON_THROW_ON_ERROR);?>);
sessionMessage = {
message: DOMPurify.sanitize('<?php print $message;?>'),
level: MESSAGE_LEVEL_MIXED
Expand Down

0 comments on commit 9c75f8d

Please sign in to comment.