Fix accepting / as home dir

This commit is contained in:
Ming Ming 2022-01-18 00:56:49 +08:00
parent 639cae6ab9
commit 97e96706d7

View file

@ -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;