mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 02:28:42 +00:00
fix(web): json_encode for input enter in /user/msg
This commit fixes #79. Ref: https://huntr.dev/bounties/a2b63a25-385f-4f4e-b790-d910b90718f7/
This commit is contained in:
parent
9edd28541e
commit
ebf541ab91
@ -151,7 +151,7 @@ $(document).ready(function() {
|
||||
$.ajaxSetup({async:false});
|
||||
refreshConversations();
|
||||
<?php if (isset($_GET['enter'])): ?>
|
||||
enterConversation("<?= $_GET['enter'] ?>");
|
||||
enterConversation(<?= json_encode($_GET['enter']) ?>);
|
||||
<?php endif ?>
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user