sonata-project/SonataAdminBundle — pull request #983 by thanosp (2012-09-25 11:36:41+00:00)
Title: Improved the jquery.form hack to remove pre tags properly.

Some browsers like ie7-8 add `

` tags around text/plain ajax responses.
The regex detecting that, was case sensitive whereas the IEs print `

` and that could not matched.

As a result json responses in IE7-8 for file uploads using the jquery.form.js plugin appear as text in the popup.

Must also be applied in master.

[Example](http://imageshack.us/a/img189/9646/mediatd.jpg)