From 4fc66d19a2bd19a802bb159c80c60c13a4f870ee Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 29 Jan 2016 16:53:04 -0800 Subject: [PATCH] Don't paste HTML error messages / redirects into the QR when posting from URL. #735 --- src/Posting/QR.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 47ca5f861..2e0701263 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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."