View Issue Details

IDProjectCategoryView StatusLast Update
0001893MyList ExportBug Report - SDKpublic2011-05-19 08:33
Reporterpath Assigned ToDerIdiot  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001893: jsencode is incorrect
Descriptionthe jsencode function escapes the ` character as \`. But ` need not be escaped and is infact incorrect to escape in json. Can this be deleted?
Steps To Reproduceto test that this does not break existing templates, export a template with html-operatic with the anime seikai no monshou. Edit the output. Under xa.description you will see \`. If you delete the \, the template works fine
TagsNo tags attached.

Activities

path

2010-12-05 07:43

reporter   ~0003189

actually this problem is because json is a strict format. The other option is to include a jsonencode function with this body
sub jsonencode
{
    my $str = shift;
    
    $str =~ s/\"/\\\"/g;
    $str =~ s/\r//g;
    $str =~ s/\n//g;

    return $str;
}

notice, I've even removed the single quote escaping because even thats wrong in json

Issue History

Date Modified Username Field Change
2010-12-04 21:18 path New Issue
2010-12-05 07:43 path Note Added: 0003189
2011-05-19 08:33 DerIdiot Status new => resolved
2011-05-19 08:33 DerIdiot Resolution open => fixed
2011-05-19 08:33 DerIdiot Assigned To => DerIdiot