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

thinkphp $_GET string + is filtered into spaces

WBOY
Release: 2016-09-19 09:16:33
Original
1425 people have browsed it

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('+')

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template