summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorStefan <mu.stefan@googlemail.com>2016-12-22 23:04:06 +0100
committerStefan <mu.stefan@googlemail.com>2016-12-22 23:04:06 +0100
commitbe9ff4a0de3cb06a00bf2d6cb9900212c61a0b33 (patch)
treec9f57b8d0978ecc1d73c41e3a2d3c21f5b94e108 /src/node
parentefb25f417a72f96a485efb955aa2eeb5b29b87b0 (diff)
downloadetherpad-lite-be9ff4a0de3cb06a00bf2d6cb9900212c61a0b33.zip
Fixed crash on invalid export url
Diffstat (limited to 'src/node')
-rw-r--r--src/node/handler/ExportHandler.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js
index fe7ab3db..678519fb 100644
--- a/src/node/handler/ExportHandler.js
+++ b/src/node/handler/ExportHandler.js
@@ -78,8 +78,9 @@ exports.doExport = function(req, res, padId, type)
{
exporttxt.getPadTXTDocument(padId, req.params.rev, function(err, txt)
{
- if(ERR(err)) return;
- res.send(txt);
+ if(!err) {
+ res.send(txt);
+ }
});
}
else