sharing: put file path between quotation marks

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Benedek Nagy authored and Sunil Mohan Adapa committed 2022-04-25 15:21:45 -07:00
1 parent e8b224982f
commit 0b2125aad6
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -20,8 +20,9 @@ class AddShareForm(forms.Form):
'A lowercase alpha-numeric string that uniquely identifies a '
'share. Example: <em>media</em>.'))
path = forms.CharField(
label=_('Path to share'), strip=True, help_text=_(
path = forms.RegexField(
label=_('Path to share'), strip=True, regex=r'^[^\"]+$',
help_text=_(
'Disk path to a folder on this server that you intend to share.'))
is_public = forms.BooleanField(