mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #58523 from nextcloud/backport/58512/stable33
fix(core): Allow external sharing to plain http://localhost
This commit is contained in:
commit
a13af29619
3 changed files with 4 additions and 4 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)
|
||||
|
|
|
|||
4
dist/core-public-page-menu.js
vendored
4
dist/core-public-page-menu.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-public-page-menu.js.map
vendored
2
dist/core-public-page-menu.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue