svn-support: Add proper escaping to the mod_dav_svn template. #4244

Without quoting names/paths with spaces are not supported.
This commit is contained in:
Martin Bornhold 2016-09-27 09:07:05 +02:00
parent d90d10b70e
commit 67df3f1bf8

View file

@ -26,21 +26,21 @@
# </VirtualHost>
<Location ${location_root|n}>
<Location "${location_root|n}">
# The mod_dav_svn module takes the username from the apache request object.
# Without authorization this will be empty and no username is logged for the
# transactions. This will result in "(no author)" for each revision. The
# following directives implement a fake authentication that allows every
# username/password combination.
AuthType Basic
AuthName ${rhodecode_realm|n}
AuthName "${rhodecode_realm|n}"
AuthBasicProvider anon
Anonymous *
Require valid-user
DAV svn
SVNParentPath ${parent_path_root|n}
SVNListParentPath ${'On' if svn_list_parent_path else 'Off'|n}
SVNParentPath "${parent_path_root|n}"
SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n}
Allow from all
Order allow,deny
@ -48,16 +48,16 @@
% for location, parent_path in repo_group_paths:
<Location ${location|n}>
<Location "${location|n}">
AuthType Basic
AuthName ${rhodecode_realm|n}
AuthName "${rhodecode_realm|n}"
AuthBasicProvider anon
Anonymous *
Require valid-user
DAV svn
SVNParentPath ${parent_path|n}
SVNListParentPath ${'On' if svn_list_parent_path else 'Off'|n}
SVNParentPath "${parent_path|n}"
SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n}
Allow from all
Order allow,deny