I think i found a new bug , but im not sure (involves escaping & validation->run) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: I think i found a new bug , but im not sure (involves escaping & validation->run) (/showthread.php?tid=1739) |
I think i found a new bug , but im not sure (involves escaping & validation->run) - El Forum - 06-23-2007 [eluser]johnman[/eluser] I am currenly trying to get my form validation correct and somehow CI is throwing away some of the '\' if i use it in the input fields. Below is the debugging code i used to pinpoint the problem. Code: $this->validation->set_error_delimiters('<div class="error">', '</div>'); this gives the following output: Code: Voor: aaa\bbb NA: aaabbb I checked everything until the validation->run and right at that point the '\' disappears. Im not sure if this is already known since i know there are already some bugreports involving escaping. (PS i know there shouldn't be any backslashes in a name anyway ) I think i found it: line 663 in validation.php Code: return str_replace(array("'", '"', '<', '>'), array("'", """, '<', '>'), stripslashes($str)); There shouldn't be a stripslashes there right? EDIT I also posted this in the bug topic just to be sure it is known . I think i found a new bug , but im not sure (involves escaping & validation->run) - El Forum - 10-30-2012 [eluser]Alex Florea[/eluser] EDIT |