Copy code The code is as follows:
$returnUrl = rawurlencode(base64_encode($returnUrl)); //Encoding
$returnUrl = parse_str(base64_decode($returnUrl));//Decode or
$returnUrl = base64_decode($returnUrl);//Decode
//or
//Don’t know Why, the first decoding method above returns null, solution
$returnUrl = base64_encode($returnUrl); //Encoding
$returnUrl = base64_decode($returnUrl);//Decoding
This is a way, but it is the safest, because as long as you know this principle, you can solve it, but your requirements are not high.
If you want to be safe, then do it Use a special encryption class, hehe.
http://www.bkjia.com/PHPjc/324115.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324115.htmlTechArticleCopy code The code is as follows: $returnUrl = rawurlencode(base64_encode($returnUrl)); //Encoding $returnUrl = parse_str (base64_decode($returnUrl));//Decoding or $returnUrl = base64_deco...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn