In swfupload_node_save _swfupload_parse_json($node->upload) returns N if POST data is not properly escaped. Entering " - symbol in any SWFupload field makes it fail.
Here is the fix:
in file js/swfupload.src.js function ref.toJson
case 'string':
return '"'+v.replace(/\n/g, '\\n') + '"';

add proper escaping by:
return '"'+v.replace(/\n/g, '\\n').replace(/"/g, '\\"') + '"';

I did not test neither other data types not special characters.
And, sorry, i am too stupid to make a Patch :)

Comments

skilip’s picture

Status: Needs review » Closed (fixed)