diff options
author | niko <niko> | 2012-08-26 13:49:18 (GMT) |
---|---|---|
committer | niko <niko> | 2012-08-26 13:49:18 (GMT) |
commit | 9df93aa72d2e67afde9e4e6d515072720f98f9fc (patch) | |
tree | 5d7d589535387cbd2718ad62962b770b428910dc /src | |
parent | 1bd50976db2694d391bc28a0c6f8245af2272650 (diff) | |
download | synckolab-9df93aa72d2e67afde9e4e6d515072720f98f9fc.tar.gz |
fix for #25106
Diffstat (limited to 'src')
-rw-r--r-- | src/chrome/content/synckolab/tools/text.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chrome/content/synckolab/tools/text.js b/src/chrome/content/synckolab/tools/text.js index eb66a46..2a03856 100644 --- a/src/chrome/content/synckolab/tools/text.js +++ b/src/chrome/content/synckolab/tools/text.js @@ -73,9 +73,10 @@ com.synckolab.tools.text = { * remove possible problematic chars from a name */ fixNameToMiniCharset : function (name) { - if(!name) { + if (typeof name === 'undefined' || !name.length) { com.synckolab.global.consoleService.logStringMessage("undefined string " + new Error("s").stack); } + var ret = ""; // avoid double placeholders var placeHolder = false; |