diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-11 12:36:23 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-06-11 12:36:23 -0700 |
commit | bb35aefffbc287efc9823abd4b0e451b86c37378 (patch) | |
tree | 4ddc47cc04d327cc0077830a82b5343558f30df0 /lib/gallery.panel.js | |
parent | 30f4e143e8fbec928661dcbe75898465e7eff29c (diff) |
Fix for ticket #797
When load a file is uploaded using a dialog box and the jquery plugin ajaxForm, the ajaxForm plugin uses an hidden iFrame element to send the multi-part
form and this is where the response goes. The ajaxForm plugin then retrieves the document body and parses the result as a json string. If the file uploads
properly everything is fine, but if it fails Gallery3 return the input form with the the error fields highlighted as part of the json response. As this
response is returned to a hidden iframe, the browser attempts to manipulate it and all hell breaks loose. We lose the trailing brace, we start getting
escaping of form tags. When the ajaxForm plugin retrieves the iFrame body its no longer a valid json frame and the parsing fails and the user sees no
indication that it failed.
Diffstat (limited to 'lib/gallery.panel.js')
0 files changed, 0 insertions, 0 deletions