From fe2b598c640d820dc6e33af909ba5367f754d931 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 24 Nov 2021 18:00:45 +0100 Subject: [PATCH] fix(ui): input id validation pattern --- app/views/console/comps/header.phtml | 2 +- app/views/console/database/collection.phtml | 18 +++++++++--------- app/views/console/database/document.phtml | 2 +- app/views/console/database/index.phtml | 2 +- app/views/console/functions/index.phtml | 2 +- app/views/console/storage/index.phtml | 2 +- app/views/console/users/index.phtml | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/views/console/comps/header.phtml b/app/views/console/comps/header.phtml index 0c3c5ab9f..6a258f60e 100644 --- a/app/views/console/comps/header.phtml +++ b/app/views/console/comps/header.phtml @@ -211,7 +211,7 @@ required maxlength="36" class="" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" name="projectId" /> diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index 8c60c6eca..a3295363c 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -558,7 +558,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -643,7 +643,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -733,7 +733,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -822,7 +822,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -900,7 +900,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -981,7 +981,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -1059,7 +1059,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -1137,7 +1137,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
@@ -1242,7 +1242,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore
diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml index 266c8cd4b..d8d0ea37e 100644 --- a/app/views/console/database/document.phtml +++ b/app/views/console/database/document.phtml @@ -83,7 +83,7 @@ $logs = $this->getParam('logs', null); name="documentId" id="documentId" maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" /> + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" />
diff --git a/app/views/console/database/index.phtml b/app/views/console/database/index.phtml index d543fb97f..fe04e4d2f 100644 --- a/app/views/console/database/index.phtml +++ b/app/views/console/database/index.phtml @@ -102,7 +102,7 @@ data-validator="database.getCollection" required maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" name="collectionId" /> diff --git a/app/views/console/functions/index.phtml b/app/views/console/functions/index.phtml index 150ded092..7f35bfe7d 100644 --- a/app/views/console/functions/index.phtml +++ b/app/views/console/functions/index.phtml @@ -113,7 +113,7 @@ $runtimes = $this->getParam('runtimes', []); data-validator="functions.get" required maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" name="functionId" /> diff --git a/app/views/console/storage/index.phtml b/app/views/console/storage/index.phtml index ca1a967ff..ec4d58683 100644 --- a/app/views/console/storage/index.phtml +++ b/app/views/console/storage/index.phtml @@ -245,7 +245,7 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0); data-validator="storage.getFile" required maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" name="fileId" id="fileId" /> diff --git a/app/views/console/users/index.phtml b/app/views/console/users/index.phtml index e9a42464f..ead35ad46 100644 --- a/app/views/console/users/index.phtml +++ b/app/views/console/users/index.phtml @@ -163,7 +163,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false); data-validator="users.get" required maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" id="userId" name="userId" /> @@ -311,7 +311,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false); data-validator="teams.get" required maxlength="36" - pattern="^[a-zA-Z0-9][a-z0-9_-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" id="teamId" name="teamId" />