CodeIgniter Forums
Bug in mysql database library - 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: Bug in mysql database library (/showthread.php?tid=8873)



Bug in mysql database library - El Forum - 06-03-2008

[eluser]Unknown[/eluser]
The function escape_str has a bug on quote string.
After I added following code,It's ok.
Code:
if (get_magic_quotes_gpc())
{
    return $str;
}



Bug in mysql database library - El Forum - 06-04-2008

[eluser]Derek Jones[/eluser]
What is the source of the query? CI nullifies magic quotes in Input, and your own strings will of course not be affected.