🔒️ Fix regex security warning
This commit is contained in:
1 parent
690c627f81
commit
76008aa92b
1 file changed
+1
-1
@@ -137,7 +137,7 @@ export default function LoginPage({
|
||||
);
|
||||
}
|
||||
|
||||
const regexExp = /^\/{1}[A-z\/]*$/;
|
||||
const regexExp = /^\/{1}[A-Za-z\/]*$/;
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async ({ locale, req, res, query }) => {
|
||||
const session = await getServerAuthSession({ req, res });
|
||||
|
||||
Reference in new issue
Block a user