mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix accepting / as home dir
This commit is contained in:
parent
639cae6ab9
commit
97e96706d7
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ class _WebDavUrlDialogState extends State<_WebDavUrlDialog> {
|
|||
Text("${widget.account.url}/remote.php/dav/files/"),
|
||||
TextFormField(
|
||||
validator: (value) {
|
||||
if (value?.isNotEmpty == true) {
|
||||
if (value?.trimAny("/").isNotEmpty == true) {
|
||||
return null;
|
||||
}
|
||||
return L10n.global().homeFolderInputInvalidEmpty;
|
||||
|
|
Loading…
Reference in a new issue