Skip to content

Commit

Permalink
Do not return empty string for falsy arguments in Utilities.htmlSpeci…
Browse files Browse the repository at this point in the history
…alChars
  • Loading branch information
adomasven committed Apr 18, 2017
1 parent de7b56b commit ff74e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotero/xpcom/utilities.js
Expand Up @@ -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();
}

Expand Down

0 comments on commit ff74e0f

Please sign in to comment.