mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
sanitizePathname: Move to separate module to facilitate reuse
This commit is contained in:
parent
926da57e34
commit
0d9476529e
3 changed files with 25 additions and 27 deletions
|
@ -1,10 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
const Minify = require('../../../node/utils/Minify');
|
||||
const assert = require('assert').strict;
|
||||
const path = require('path');
|
||||
|
||||
const {sanitizePathname} = Minify.exportedForTestingOnly;
|
||||
const sanitizePathname = require('../../../node/utils/sanitizePathname');
|
||||
|
||||
describe(__filename, function () {
|
||||
describe('absolute paths rejected', function () {
|
Loading…
Add table
Add a link
Reference in a new issue