Don't paste HTML error messages / redirects into the QR when posting from URL. #735

This commit is contained in:
ccd0 2016-01-29 16:53:04 -08:00
parent 2b75b393e0
commit 4fc66d19a2

View File

@ -378,7 +378,7 @@ QR =
return if url is null
QR.nodes.fileButton.focus()
CrossOrigin.file url, (blob) ->
if blob
if blob and not /^text\//.test blob.type
QR.handleFiles [blob]
else
QR.error "Can't load file."