![]() |
Amperstand gets encoded on POST (SOLVED) - 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: Amperstand gets encoded on POST (SOLVED) (/showthread.php?tid=21062) |
Amperstand gets encoded on POST (SOLVED) - El Forum - 07-29-2009 [eluser]Dan Bowling[/eluser] I've got a login page where users with an amperstand in their password encounter a bug where their password gets a semicolon added to it. For example: "test" works fine "test&" works fine "test&test;" produces "test&test;" Any ideas on this? I don't see this as a described behavior in the input or form validation classes. Here is my offending code. The semicolon is even displayed in the print_r() echo. Code: function index() I even encounter the problem with this stripped down version: Code: function index() Firebug says that the post data being sent is good, and doesn't have the semicolon, and the problem is repeatable in IE8. EDIT: I eventually solved this myself before anyone responded. The issues is the XSS filter that is applied. So I disabled it on the controller that is affected and set up the other inputs to XSS_Clean manually. Code: $config['global_xss'] = ( ! in_array($_SERVER['REQUEST_URI'], array('authenticate'))) ? true : false; |