diff --git a/client/pages/config/authentication.vue b/client/pages/config/authentication.vue index 9e028307..67de9c35 100644 --- a/client/pages/config/authentication.vue +++ b/client/pages/config/authentication.vue @@ -193,7 +193,7 @@ export default { function isValidRedirectURI(uri) { // Check for somestring://someother/string - const pattern = new RegExp('^\\w+://[\\w\\.-]+$', 'i') + const pattern = new RegExp('^\\w+://[\\w\\.-]+(/[\\w\\./-]*)*$', 'i') return pattern.test(uri) } diff --git a/server/controllers/MiscController.js b/server/controllers/MiscController.js index c2272ee6..c098514e 100644 --- a/server/controllers/MiscController.js +++ b/server/controllers/MiscController.js @@ -633,7 +633,7 @@ class MiscController { } else if (key === 'authOpenIDMobileRedirectURIs') { function isValidRedirectURI(uri) { if (typeof uri !== 'string') return false - const pattern = new RegExp('^\\w+://[\\w.-]+$', 'i') + const pattern = new RegExp('^\\w+://[\\w\\.-]+(/[\\w\\./-]*)*$', 'i') return pattern.test(uri) }