Showing
1 changed file
with
1 additions
and
1 deletions
@@ -1074,7 +1074,7 @@ class CartModel | @@ -1074,7 +1074,7 @@ class CartModel | ||
1074 | $unionKey = AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy'); | 1074 | $unionKey = AuthCode::decode($_COOKIE['_QYH_UNION'], 'q_union_yohobuy'); |
1075 | } | 1075 | } |
1076 | } else { | 1076 | } else { |
1077 | - $unionKey = '{"client_id":' . $_COOKIE['mkt_code'] . ($_COOKIE['union_data'] ? ', union_data: '.$_COOKIE['union_data']: '') . '}'; | 1077 | + $unionKey = '{"client_id":' . $_COOKIE['mkt_code'] . ($_COOKIE['union_data'] ? ', union_data: '.addslashes($_COOKIE['union_data']): '') . '}'; |
1078 | } | 1078 | } |
1079 | /* 检查联盟参数是否有效 */ | 1079 | /* 检查联盟参数是否有效 */ |
1080 | $unionInfo = empty($unionKey) ? array() : json_decode($unionKey, true); | 1080 | $unionInfo = empty($unionKey) ? array() : json_decode($unionKey, true); |
-
Please register or login to post a comment