mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 14:09:43 +00:00
OIDC: Fix CodeQL warnings
This commit is contained in:
parent
c2a7615319
commit
e428ba5657
3 changed files with 21 additions and 3 deletions
|
|
@ -296,7 +296,7 @@ function validateSettings(values) {
|
|||
|
||||
if (field.validate === 'uri') {
|
||||
if (Array.isArray(value)) {
|
||||
const uriPattern = /^\w+:\/\/[\w.-]+(\/[\w./-]*)*$/i
|
||||
const uriPattern = /^\w+:\/\/[\w.-]+(\/[\w./-]*)?$/i
|
||||
for (const uri of value) {
|
||||
if (!uriPattern.test(uri)) {
|
||||
errors.push(`${field.label}: Invalid URI "${uri}"`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue