diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 0e6b8060b..a45a5cfa2 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -580,6 +580,19 @@ Zotero.Translate.Sandbox = { if(setShortTitle) item.shortTitle = title; } + // refuse to save very long tags + if(item.tags) { + for(var i=0; i 255) { + translate._debug("WARNING: Skipping unsynchable tag "+JSON.stringify(tagString)); + item.tags.splice(i--, 1); + } + } + } + // call super Zotero.Translate.Sandbox.Base._itemDone(translate, item); }