lsc 1 년 전
부모
커밋
f18392bee5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      js/Desktop/DeskTop.js

+ 1 - 1
js/Desktop/DeskTop.js

@@ -6559,7 +6559,7 @@ U.MD.D.I.setContents = function (cid, s, task, t, uid, type, text, loading, span
     // xmlhttp.open("POST", "http://localhost:7003/api/pbl/" + "insertWord2y", true);
     xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
     // 设置请求头,表示请求体的编码格式
-    xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text + "&type=" + type);
+    xmlhttp.send("uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&text=" + text.replaceAll(/%/g, "%25") + "&type=" + type);
     // 设置请求体,使用url-encoded格式的数据
 }