Don't sanitize input from child web translators before passing it to parent translators
This commit is contained in:
parent
c549166e25
commit
70440ee8f9
1 changed files with 64 additions and 61 deletions
|
@ -522,6 +522,8 @@ Zotero.Translate.Sandbox = {
|
||||||
* @param {SandboxItem} An item created using the Zotero.Item class from the sandbox
|
* @param {SandboxItem} An item created using the Zotero.Item class from the sandbox
|
||||||
*/
|
*/
|
||||||
"_itemDone":function(translate, item) {
|
"_itemDone":function(translate, item) {
|
||||||
|
// Only apply checks if there is no parent translator
|
||||||
|
if(!translate._parentTranslator) {
|
||||||
if(!item.itemType) {
|
if(!item.itemType) {
|
||||||
item.itemType = "webpage";
|
item.itemType = "webpage";
|
||||||
translate._debug("WARNING: No item type specified");
|
translate._debug("WARNING: No item type specified");
|
||||||
|
@ -592,6 +594,7 @@ Zotero.Translate.Sandbox = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// call super
|
// call super
|
||||||
Zotero.Translate.Sandbox.Base._itemDone(translate, item);
|
Zotero.Translate.Sandbox.Base._itemDone(translate, item);
|
||||||
|
|
Loading…
Add table
Reference in a new issue