There was an error while loading. Please reload this page.
1 parent d9afcf4 commit 5ab117bCopy full SHA for 5ab117b
static/js/chat.js
@@ -55,7 +55,7 @@ function sendMessage() {
55
}
56
57
function getAnswer(inputValue){
58
- inputValue = inputValue.replace('+', '{[$add$]}');
+ inputValue = encodeURIComponent(inputValue.replace(/\+/g, '{[$add$]}'));
59
const url = "./chat.php?q="+inputValue;
60
const eventSource = new EventSource(url);
61
0 commit comments