mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
sharing: put file path between quotation marks
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
e8b224982f
commit
0b2125aad6
2 files changed
+5
-4
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user