Welcome Guest, Not a member yet? Register   Sign In
Enccrypt and $_POST
#1

[eluser]Unknown[/eluser]
Hi there,
i've got an encrypted string from $this->encrypt->encode("xxx")
this string is:

Code:
DhjXIOAvixAbh2zh0RwGeGCYU66oJxvY/rAJmVTul1RKwTYJ+qXUnkix5FMBOkPgyKt7+pRC8rd/LNSv+afM1w==

Now i want to $_POST that string to another page.
And when i echo the input:

Code:
echo($this->input->post('xx'));

i get the following output:

Code:
DhjXIOAvixAbh2zh0RwGeGCYU66oJxvY/rAJmVTul1RKwTYJ qXUnkix5FMBOkPgyKt7 pRC8rd/LNSv afM1w==

Every << + >> is replaced by <<space>>

I changed $config['permitted_uri_chars'] and allowed th << + >> char, but the only thing that happens is that the << + >> chars are replaced by nothing. So the string cant be decoded due to missing characters.

What's wrong?

Is there a configuration for allowed $_POST chars?
Or any other ideas?
#2

[eluser]johnwbaxter[/eluser]
I imagine it's because as you're running it through CI's way of getting post data (instead of $_POST)it is being xss filtered first which removes dangerous characters.

You can just grab it by $_POST if you think that is still safe in your setup (i don't know what your app is!)




Theme © iAndrew 2016 - Forum software by © MyBB