Skip to content

Commit

Permalink
fix(web): json_encode for input enter in /user/msg
Browse files Browse the repository at this point in the history
  • Loading branch information
billchenchina committed Sep 9, 2021
1 parent 9edd285 commit ebf541a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/controllers/user_msg.php
Expand Up @@ -151,7 +151,7 @@ function deleteMsg($msgId) {
$.ajaxSetup({async:false});
refreshConversations();
<?php if (isset($_GET['enter'])): ?>
enterConversation("<?= $_GET['enter'] ?>");
enterConversation(<?= json_encode($_GET['enter']) ?>);
<?php endif ?>
});
</script>
Expand Down

1 comment on commit ebf541a

@billchenchina
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it should be #96, sorry

Please sign in to comment.