Merge pull request #58523 from nextcloud/backport/58512/stable33

fix(core): Allow external sharing to plain http://localhost
This commit is contained in:
Kate 2026-02-24 09:34:39 +01:00 committed by GitHub
commit a13af29619
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ watch(remoteUrl, () => {
let validity = ''
if (!remoteUrl.value.includes('@')) {
validity = t('core', 'The remote URL must include the user.')
} else if (!remoteUrl.value.match(/@(.+\..{2,}|localhost)(:\d\d+)?$/)) {
} else if (!remoteUrl.value.match(/@(.+\..{2,}|(?:http:\/\/)?localhost)(:\d\d+)?$/)) {
validity = t('core', 'Invalid remote URL.')
}
input.value!.$el.querySelector('input')!.setCustomValidity(validity)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long