Fixed issue with non-escaped single quote breaking DB insert
Fixed issue with IE adding phantom media attachments (effect is fixed, but the cause is for now unidentified)