mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
fix(core): Allow external sharing to plain http://localhost
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
63ba2b6b32
commit
97dd1cbf16
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue