mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #2550 from webzwo0i/fix-export-leak
oops, fix export with wildcards
This commit is contained in:
commit
d991dab8b2
1 changed files with 12 additions and 2 deletions
|
@ -23,9 +23,19 @@ exports.getPadRaw = function(padId, callback){
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function(cb){
|
function(cb){
|
||||||
|
|
||||||
// Get the Pad available content keys
|
// Get the Pad
|
||||||
db.findKeys("pad:"+padId+"*", null, function(err,records){
|
db.findKeys("pad:"+padId, null, function(err,padcontent){
|
||||||
if(!err){
|
if(!err){
|
||||||
|
cb(err, padcontent);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
function(padcontent,cb){
|
||||||
|
|
||||||
|
// Get the Pad available content keys
|
||||||
|
db.findKeys("pad:"+padId+":*", null, function(err,records){
|
||||||
|
if(!err){
|
||||||
|
for (var key in padcontent) { records.push(padcontent[key]);}
|
||||||
cb(err, records);
|
cb(err, records);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue