mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
ImportEtherpad: Rigorously check imported data
This commit is contained in:
parent
885ff3bcde
commit
19909eae53
3 changed files with 130 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
const CustomError = require('../utils/customError');
|
||||
const Pad = require('../db/Pad').Pad;
|
||||
const Pad = require('../db/Pad');
|
||||
const db = require('./DB');
|
||||
const hooks = require('../../static/js/pluginfw/hooks');
|
||||
|
||||
|
@ -138,7 +138,7 @@ exports.getPad = async (id, text) => {
|
|||
}
|
||||
|
||||
// try to load pad
|
||||
pad = new Pad(id);
|
||||
pad = new Pad.Pad(id);
|
||||
|
||||
// initialize the pad
|
||||
await pad.init(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue