mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-04 19:56:37 +02:00
feat: normalized url to admin area
This commit is contained in:
parent
6766165b32
commit
51929f873c
@ -24,7 +24,7 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func
|
||||
}
|
||||
args.app.get('/admin/*', (req: any, res: any) => {
|
||||
// extract URL path
|
||||
let pathname = path.join(ADMIN_PATH + req.url);
|
||||
let pathname = path.join(ADMIN_PATH, req.url);
|
||||
pathname = path.normalize(pathname)
|
||||
|
||||
if (!pathname.startsWith(ADMIN_PATH)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user