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