mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: Check if route was set to /r, as it's reserved. (#643)
This commit is contained in:
parent
c0b2dda7da
commit
aa9f0796ab
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ export default function validate(config): Config {
|
|||
}
|
||||
}
|
||||
|
||||
const reserved = ['/view', '/dashboard', '/code', '/folder', '/api', '/auth'];
|
||||
const reserved = ['/view', '/dashboard', '/code', '/folder', '/api', '/auth', '/r'];
|
||||
if (reserved.some((r) => validated.uploader.route.startsWith(r))) {
|
||||
throw {
|
||||
errors: [`The uploader route cannot be ${validated.uploader.route}, this is a reserved route.`],
|
||||
|
|
Loading…
Add table
Reference in a new issue