On Tuesday, 25 June 2013 at 6:07 PM, Marc Delisle wrote:
Ayush Chaudhary a écrit :Hi,I was setting up some unit tests when I came across the function PMA_Util::sqlAddSlashes() Isn't it supposed to add slashes to single quotes? Because I tested this:echo PMA_Util::sqlAddSlashes("pma_'db");And the output was pma_''dbIs this the correct behaviour?Hi Ayush,yes this is correct, see [0]. "A “'” inside a string quoted with “'” maybe written as “''”. "However, this function could be renamed escapeForSql() or something likethat.[0]--Marc Delisle------------------------------------------------------------------------------This SF.net email is sponsored by Windows:Build for Windows Store._______________________________________________Phpmyadmin-devel mailing list