Skip to content

escapeString copy-paste error #103

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions