Ticket #1563: attachments.diff

File attachments.diff, 617 bytes (added by ajlyon, 5 years ago)
  • zotero/chrome/content/zotero/xpcom/attachments.js

     
    415415                Zotero.debug('Linking attachment from URL'); 
    416416                 
    417417                // Throw error on invalid URLs 
    418                 var urlRe = /^https?:\/\/[^\s]*$/; 
     418                var urlRe = /^(https?|evernote|onenote|x-devonthink-item|ftp):\/\/[^\s]*$/; 
    419419                var matches = urlRe.exec(url); 
    420420                if (!matches) { 
    421421                        throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");