mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:58: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});
|
$.ajaxSetup({async:false});
|
||||||
refreshConversations();
|
refreshConversations();
|
||||||
<?php if (isset($_GET['enter'])): ?>
|
<?php if (isset($_GET['enter'])): ?>
|
||||||
enterConversation("<?= $_GET['enter'] ?>");
|
enterConversation(<?= json_encode($_GET['enter']) ?>);
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user