Do not return empty string for falsy arguments in Utilities.htmlSpecialChars
This commit is contained in:
parent
de7b56b8a1
commit
ff74e0ff00
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user