Closed (fixed)
Project:
SWFUpload
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2008 at 22:24 UTC
Updated:
3 May 2010 at 20:51 UTC
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
Comment #1
skilip commented