Ticket #1563: attachments.diff
| File attachments.diff, 617 bytes (added by ajlyon, 5 years ago) |
|---|
-
zotero/chrome/content/zotero/xpcom/attachments.js
415 415 Zotero.debug('Linking attachment from URL'); 416 416 417 417 // Throw error on invalid URLs 418 var urlRe = /^ https?:\/\/[^\s]*$/;418 var urlRe = /^(https?|evernote|onenote|x-devonthink-item|ftp):\/\/[^\s]*$/; 419 419 var matches = urlRe.exec(url); 420 420 if (!matches) { 421 421 throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");