Do not return empty string for falsy arguments in Utilities.htmlSpecialChars

This commit is contained in:
Adomas Venčkauskas 2017-04-18 16:21:09 +03:00
parent de7b56b8a1
commit ff74e0ff00

View File

@ -459,7 +459,7 @@ Zotero.Utilities = {
* @return {String} * @return {String}
*/ */
"htmlSpecialChars":function(str) { "htmlSpecialChars":function(str) {
if (str && typeof str != 'string') { if (str !== undefined && typeof str != 'string') {
str = str.toString(); str = str.toString();
} }