From 06a23ea29aee0d3fd59003516fea82551382ad41 Mon Sep 17 00:00:00 2001
From: Alain Nussbaumer
Date: Thu, 28 Mar 2024 15:45:39 +0100
Subject: [PATCH] [web] Check validity of URL
---
web-src/src/components/ModalDialogAddRss.vue | 9 ++++++++-
.../src/components/ModalDialogAddUrlStream.vue | 17 +++++++++++++----
web-src/src/mystyles.scss | 8 ++++++++
3 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/web-src/src/components/ModalDialogAddRss.vue b/web-src/src/components/ModalDialogAddRss.vue
index c861575a..8a02200e 100644
--- a/web-src/src/components/ModalDialogAddRss.vue
+++ b/web-src/src/components/ModalDialogAddRss.vue
@@ -13,10 +13,11 @@
v-model="url"
class="input is-shadowless"
type="url"
- pattern="http[s]?://.*"
+ pattern="http[s]?://.+"
required
:placeholder="$t('dialog.add.rss.placeholder')"
:disabled="loading"
+ @input="check_url"
/>
@@ -38,6 +39,7 @@
-