mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
Merge pull request #3101 from Gared/fix_crash_on_invalid_export
Fixed crash on invalid export url
This commit is contained in:
commit
b8a4648d6d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user