Ver código fonte

修复sso.html中xtoken带特殊字符的问题

unknown 4 anos atrás
pai
commit
f8232983a2
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      o2web/source/x_desktop/sso.html

+ 1 - 1
o2web/source/x_desktop/sso.html

@@ -44,7 +44,7 @@
                             }.bind(this)
                         });
                         res.setHeader("Content-Type", "application/json; charset=utf-8");
-                        var json = {"token": xtoken, "client": client};
+                        var json = {"token": encodeURIComponent(xtoken), "client": client};
 
                         res.send(JSON.encode(json));
                     }else{