diff options
author | Stefan <mu.stefan@googlemail.com> | 2016-12-22 23:04:06 +0100 |
---|---|---|
committer | Stefan <mu.stefan@googlemail.com> | 2016-12-22 23:04:06 +0100 |
commit | be9ff4a0de3cb06a00bf2d6cb9900212c61a0b33 (patch) | |
tree | c9f57b8d0978ecc1d73c41e3a2d3c21f5b94e108 /src | |
parent | efb25f417a72f96a485efb955aa2eeb5b29b87b0 (diff) | |
download | etherpad-lite-be9ff4a0de3cb06a00bf2d6cb9900212c61a0b33.zip |
Fixed crash on invalid export url
Diffstat (limited to 'src')
-rw-r--r-- | src/node/handler/ExportHandler.js | 5 |
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 |