View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001893 | MyList Export | Bug Report - SDK | public | 2010-12-04 21:18 | 2011-05-19 08:33 |
Reporter | path | Assigned To | DerIdiot | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0001893: jsencode is incorrect | ||||
Description | the 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 Reproduce | to 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 | ||||
Tags | No tags attached. | ||||
|
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 |