The function _swfupload_swfupload should set the content-type to javascript. so that the devel module does not append debug information.
Simple patch attached.
Note: This can lead to the "button is greyed out"-Issue, because the returned data is invalid js-code.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | swfupload.devel_bypass2.patch | 579 bytes | berdir |
| swfupload.devel_bypass.patch | 654 bytes | berdir |
Comments
Comment #1
skilip commentedThanks for reporting and applying your patch. This stuff is rather new to me. I'll test this asap.
Comment #2
berdirI've just found out that there is a drupal_json which is a simple function that sets the header and outputs the js automatically. New patch attached.
Comment #3
skilip commented