From 1c7ea3c529bde8c1acd5243b1feb83517e7e21a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 21 Mar 2022 14:30:51 +0000 Subject: [PATCH] Fixed validation regex for custom ID --- 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 +-- composer.lock | 28 ++++++++++----------- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/app/views/console/comps/header.phtml b/app/views/console/comps/header.phtml index e6478225f..59c701d4e 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-zA-Z0-9_.-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" name="projectId" /> diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index 53921ac57..aa39d45eb 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -627,7 +627,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -683,7 +683,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -748,7 +748,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -813,7 +813,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -866,7 +866,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -923,7 +923,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -976,7 +976,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -1029,7 +1029,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
@@ -1107,7 +1107,7 @@ $logs = $this->getParam('logs', null); - +
Allowed Characters A-Z, a-z, 0-9, and non-leading underscore, hyphen and dot
diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml index faa198aa4..2b71c6673 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-zA-Z0-9._-]{1,36}$" /> + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" />
diff --git a/app/views/console/database/index.phtml b/app/views/console/database/index.phtml index 341c3c598..f12cf9dc6 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-zA-Z0-9._-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" name="collectionId" /> diff --git a/app/views/console/functions/index.phtml b/app/views/console/functions/index.phtml index 445112df8..b11bbdf15 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-zA-Z0-9._-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" name="functionId" /> diff --git a/app/views/console/storage/index.phtml b/app/views/console/storage/index.phtml index 69ae9ad7d..6ed933eab 100644 --- a/app/views/console/storage/index.phtml +++ b/app/views/console/storage/index.phtml @@ -101,7 +101,7 @@ data-validator="storage.getBucket" required maxlength="36" - pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" name="bucketId" id="bucketId" /> diff --git a/app/views/console/users/index.phtml b/app/views/console/users/index.phtml index 10baf7441..470092f0f 100644 --- a/app/views/console/users/index.phtml +++ b/app/views/console/users/index.phtml @@ -165,7 +165,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false); data-validator="users.get" required maxlength="36" - pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" id="userId" name="userId" /> @@ -313,7 +313,7 @@ $smtpEnabled = $this->getParam('smtpEnabled', false); data-validator="teams.get" required maxlength="36" - pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{1,36}$" + pattern="^[a-zA-Z0-9][a-zA-Z0-9._-]{0,36}$" id="teamId" name="teamId" /> diff --git a/composer.lock b/composer.lock index 291b391b3..4a9b786b3 100644 --- a/composer.lock +++ b/composer.lock @@ -478,16 +478,16 @@ }, { "name": "guzzlehttp/guzzle", - "version": "7.4.1", + "version": "7.4.2", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79" + "reference": "ac1ec1cd9b5624694c3a40be801d94137afb12b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ee0a041b1760e6a53d2a39c8c34115adc2af2c79", - "reference": "ee0a041b1760e6a53d2a39c8c34115adc2af2c79", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/ac1ec1cd9b5624694c3a40be801d94137afb12b4", + "reference": "ac1ec1cd9b5624694c3a40be801d94137afb12b4", "shasum": "" }, "require": { @@ -582,7 +582,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.4.1" + "source": "https://github.com/guzzle/guzzle/tree/7.4.2" }, "funding": [ { @@ -598,7 +598,7 @@ "type": "tidelift" } ], - "time": "2021-12-06T18:43:05+00:00" + "time": "2022-03-20T14:16:28+00:00" }, { "name": "guzzlehttp/promises", @@ -686,16 +686,16 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.1.0", + "version": "2.2.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72" + "reference": "c94a94f120803a18554c1805ef2e539f8285f9a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/089edd38f5b8abba6cb01567c2a8aaa47cec4c72", - "reference": "089edd38f5b8abba6cb01567c2a8aaa47cec4c72", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/c94a94f120803a18554c1805ef2e539f8285f9a2", + "reference": "c94a94f120803a18554c1805ef2e539f8285f9a2", "shasum": "" }, "require": { @@ -719,7 +719,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-master": "2.2-dev" } }, "autoload": { @@ -781,7 +781,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.1.0" + "source": "https://github.com/guzzle/psr7/tree/2.2.1" }, "funding": [ { @@ -797,7 +797,7 @@ "type": "tidelift" } ], - "time": "2021-10-06T17:43:30+00:00" + "time": "2022-03-20T21:55:58+00:00" }, { "name": "influxdb/influxdb-php", @@ -6580,5 +6580,5 @@ "platform-overrides": { "php": "8.0" }, - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.2.0" }