diff --git a/o2web/source/x_desktop/sso.html b/o2web/source/x_desktop/sso.html
index db9dde866ec0be45c77b8cd33a0d7598ca6f9852..f4b93a8343fb0f1c3ec9029b337e0b3649a2c2ff 100644
--- a/o2web/source/x_desktop/sso.html
+++ b/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{