shopex用戶登錄錯誤提示在nginx下亂碼問題

 

 

http://www.test.cn/passport-aHR0cDosLHd3dy54eTAwNy5jbixwYXNzcG9ydC1hSFIwY0Rvc0xIZDNkeTU0ZVRBd055NWpiaXh3WVhOemNHOXlkQzFoU0ZJd1kwUnZjMHhJWkROa2VUVTBaVlJCZDA1NU5XcGlhWGRfTFRVMVUyODFiMmt6TlZwRFRqVnZhVmMxWVY5SE5UWkRRalZ3ZVVvMlMxOTJOemQ1VFRaTFh6TTJXV1ZPTlhCaGR6Wk1ObFExV1Zkc0xXeHZaMmx1TG1oMGJXd34tNTVTbzVvaTM1WkNONW9pVzVhX0c1NkNCNXB5SjZLX3Y3N3lNNktfMzZZZU41cGF3Nkw2VDVZV2wtbG9naW4uaHRtbA==-55So5oi35ZCN5oiW5a+G56CB5pyJ6K+v77yM6K+36YeN5paw6L6T5YWl-login.htmlhtml

 

nginx服務器經過get獲取url參數時,會將其中的+自動轉義成%2b.致使base64_encode的文字,解密後亂碼。解決辦法,再換回來了。nginx

function login($url,$error_msg=''){
//$error_msg = urldecode( $error_msg );服務器

$error_msg=str_replace('%2b','+',$error_msg);url

$error_msg=str_replace('%2B','+',$error_msg);spa

相關文章
相關標籤/搜索