Home >Backend Development >PHP Tutorial >thinkphp $_GET string + is filtered into spaces

thinkphp $_GET string + is filtered into spaces

WBOY
WBOYOriginal
2016-09-19 09:16:331433browse

thinkphp $_GET string + is filtered into spaces

The value of uid, the string "+", $_GET is printed and filtered into spaces?

Reply content:

thinkphp $_GET string + is filtered into spaces

The value of uid, the string "+", $_GET is printed and filtered into spaces?

No filtering occurs, normal URL parsing should be spaces here.
For Base64 strings, because there is +, if you want to pass it through the URL,
Either make sure that the + sign that appears in the URL is %20, that is, replace the + sign with %20,
or use URLSafe’s Base64 encoding, and replace +, /Replace with -,_

URL parsing is to perform urldecode
echo urldecode('+')

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