Skip to content

Commit

Permalink
半角「?」を含むメッセージが正しく投稿できなかったのを直した。
Browse files Browse the repository at this point in the history
encodeURIは ? をエンコードしないので、encodeURIComponent
を使うようにした。
  • Loading branch information
plonk committed Aug 2, 2022
1 parent f250e2e commit 29ebabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/html-master/bbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function delay(ms) {
function encodeForm(obj) {
let buf = ""
for (var key of Object.keys(obj)) {
buf += `&${key}=${encodeURI(obj[key])}`;
buf += `&${key}=${encodeURIComponent(obj[key])}`;
}
return buf.substring(1);
}
Expand Down

0 comments on commit 29ebabb

Please sign in to comment.