I'm working on an Android app which sends some hashes to the server. Of course, the hashes often contain special characters like + = /
. I found out that my PHP script is automatically changing the + symbol with a blank space, which somehow breaches in my own security mechanism.
I could've simply replaced the blank space with the + sign using the str_replace()
function, but I'm worried if there can be more circumstances like this where PHP changes some special characters with some other characters. Also, It's not the ethical way.
1) Is it only about the + symbol or there can be other occurrences too?
2) What is the correct way to get the raw (unformatted) string?