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
+2
-2
@@ -57,7 +57,7 @@ def load_augeas():
|
||||
def subcommand_add(arguments):
|
||||
"""Add a share to Apache configuration."""
|
||||
name = arguments.name
|
||||
path = arguments.path
|
||||
path = '"' + arguments.path + '"'
|
||||
groups = arguments.groups
|
||||
is_public = arguments.is_public
|
||||
url = '/share/' + name
|
||||
@@ -154,7 +154,7 @@ def _list(aug=None):
|
||||
name = _get_name_from_url(url)
|
||||
shares.append({
|
||||
'name': name,
|
||||
'path': path,
|
||||
'path': path.strip('"'),
|
||||
'url': '/share/' + name
|
||||
})
|
||||
except ValueError:
|
||||
|
||||
Reference in new issue
Block a user