add ',' to safe characters
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ export default async (req, res) => {
|
||||
);
|
||||
}
|
||||
|
||||
const safePattern = /^[\w\/.-]+$/;
|
||||
const safePattern = /^[-\w\/.,]+$/;
|
||||
if (
|
||||
(username && !safePattern.test(username)) ||
|
||||
(repos && !safePattern.test(repos)) ||
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ export default async (req, res) => {
|
||||
);
|
||||
}
|
||||
|
||||
const safePattern = /^[\w\/.-]+$/;
|
||||
const safePattern = /^[-\w\/.,]+$/;
|
||||
if (
|
||||
(username && !safePattern.test(username)) ||
|
||||
(repo && !safePattern.test(repo))
|
||||
|
||||
Reference in New Issue
Block a user