![]() |
Enccrypt and $_POST - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Enccrypt and $_POST (/showthread.php?tid=11866) |
Enccrypt and $_POST - El Forum - 09-26-2008 [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? Enccrypt and $_POST - El Forum - 09-26-2008 [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!) |