lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

escapeString copy-paste error #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi I was browsing your code and found this in the escapeString function:
//for double quote
if ( str.indexOf("\"") != -1 )
{
    //you are replacing single quote
    //str = str.replace("\'", "\\"+"\"");
    //surely you want this:
    //str = str.replace("\"", "\\"+"\"");
}

best regards
Lukasz 'Severiaan' Grela

Original issue reported on code.google.com by lukasz.g...@gmail.com on 27 May 2011 at 9:44