mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-07-03 11:22:14 -04:00
feat: normalized url to admin area
This commit is contained in:
parent
6766165b32
commit
51929f873c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue