From 83537b03f3bf16fe6280ba4c6ed2818420ec98c2 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 19 Jun 2023 10:48:01 +0200 Subject: [PATCH] fix(editor): Update git repo URL validation to prevent using https protocol --- packages/editor-ui/src/views/SettingsVersionControl.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/views/SettingsVersionControl.vue b/packages/editor-ui/src/views/SettingsVersionControl.vue index 877dfd24b14a2..f3b066d910a9b 100644 --- a/packages/editor-ui/src/views/SettingsVersionControl.vue +++ b/packages/editor-ui/src/views/SettingsVersionControl.vue @@ -117,7 +117,7 @@ const repoUrlValidationRules: Array = [ { name: 'MATCH_REGEX', config: { - regex: /(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/, + regex: /^(?!https?:\/\/)(?:git|ssh|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/, message: locale.baseText('settings.versionControl.repoUrlInvalid'), }, },