www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ff74e0ff00832f9f2c80b869525fcc12a2d3ccf9
parent de7b56b8a1706e317dd9c644bbe09faaae3c99ef
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Tue, 18 Apr 2017 16:21:09 +0300

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

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -459,7 +459,7 @@ Zotero.Utilities = { * @return {String} */ "htmlSpecialChars":function(str) { - if (str && typeof str != 'string') { + if (str !== undefined && typeof str != 'string') { str = str.toString(); }