Showing
2 changed files
with
2 additions
and
2 deletions
@@ -40,7 +40,7 @@ const syncUserSession = (uid, req, res, sessionKey) => { | @@ -40,7 +40,7 @@ const syncUserSession = (uid, req, res, sessionKey) => { | ||
40 | let encryptionUid = aes.encryptionUid(data.uid); | 40 | let encryptionUid = aes.encryptionUid(data.uid); |
41 | 41 | ||
42 | if (data) { | 42 | if (data) { |
43 | - let uidCookie = `${data.profile_name}::${encryptionUid}::${data.vip_info.title}::${token}`; | 43 | + let uidCookie = `${encodeURIComponent(data.profile_name)}::${encryptionUid}::${data.vip_info.title}::${token}`; |
44 | let isStudent = data.vip_info.is_student || 0; | 44 | let isStudent = data.vip_info.is_student || 0; |
45 | 45 | ||
46 | res.cookie('_UID', uidCookie, { | 46 | res.cookie('_UID', uidCookie, { |
-
Please register or login to post a comment