From f04798a3299b9644479a3bbb546efe68717dd782 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 25 Mar 2024 11:06:40 +0530 Subject: [PATCH] Add URL validation to settings URL inputs on admin UI. --- frontend/src/views/settings/general.vue | 7 ++++--- frontend/src/views/settings/media.vue | 6 +++--- frontend/src/views/settings/messengers.vue | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/settings/general.vue b/frontend/src/views/settings/general.vue index df8d78fd..5bd15dd2 100644 --- a/frontend/src/views/settings/general.vue +++ b/frontend/src/views/settings/general.vue @@ -8,7 +8,7 @@ + :maxlength="300" required type="url" pattern="https?://.*" />
@@ -16,14 +16,15 @@ + :maxlength="300" type="url" pattern="https?://.*" />
+ placeholder="https://listmonk.yoursite.com/favicon.png" :maxlength="300" + type="url" pattern="https?://.*" />
diff --git a/frontend/src/views/settings/media.vue b/frontend/src/views/settings/media.vue index 0c248e60..8fd11008 100644 --- a/frontend/src/views/settings/media.vue +++ b/frontend/src/views/settings/media.vue @@ -97,14 +97,14 @@
+ :message="$t('settings.media.s3.urlHelp')"> + placeholder="https://s3.$region.amazonaws.com" :maxlength="200" expanded type="url" pattern="https?://.*" /> + :maxlength="200" type="url" pattern="https?://.*" />
diff --git a/frontend/src/views/settings/messengers.vue b/frontend/src/views/settings/messengers.vue index fd87596c..d09c123c 100644 --- a/frontend/src/views/settings/messengers.vue +++ b/frontend/src/views/settings/messengers.vue @@ -27,7 +27,7 @@ + :maxlength="200" expanded type="url" pattern="https?://.*" />