Skip to content

Commit

Permalink
fix: Check if route was set to /r, as it's reserved. (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
TacticalTechJay authored Dec 25, 2024
1 parent c0b2dda commit aa9f079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/config/validateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`],
Expand Down

0 comments on commit aa9f079

Please sign in to comment.