summaryrefslogtreecommitdiff
path: root/src/node/handler/ExportHandler.js
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2014-05-12 15:15:10 +0100
committerJohn McLear <john@mclear.co.uk>2014-05-12 15:15:10 +0100
commita82823ede267490a2afb753cc70f69374be7349b (patch)
tree57e5f3cfdf011746a8160f934ef3a4214f66b52e /src/node/handler/ExportHandler.js
parentd09e66e271cde2c80f9a0bcebdea5d5f286ba7a6 (diff)
downloadetherpad-lite-a82823ede267490a2afb753cc70f69374be7349b.zip
use full string not first char
Diffstat (limited to 'src/node/handler/ExportHandler.js')
-rw-r--r--src/node/handler/ExportHandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js
index 11d247d6..d0d8ddaa 100644
--- a/src/node/handler/ExportHandler.js
+++ b/src/node/handler/ExportHandler.js
@@ -52,7 +52,7 @@ exports.doExport = function(req, res, padId, type)
hooks.aCallFirst("exportFileName", padId,
function(err, hookFileName){
// if fileName is set then set it to the padId, note that fileName is returned as an array.
- if(hookFileName[0]) fileName = hookFileName[0];
+ if(hookFileName[0]) fileName = hookFileName;
}
);