This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 4d18d6c1b5d1a151268e6cce8d767c57109b3dbb (commit)
from ed54e87bb3def3a7f9f5f79f4bb58a61a126a8a4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=4d18d6c1b5d1a151268e6cce8d767c57109b3dbb
commit 4d18d6c1b5d1a151268e6cce8d767c57109b3dbb
Author: Franck Villaume <[email protected]>
Date: Sun Jan 15 19:08:06 2017 +0100
webdav html browse: fix some dir names support & html syntax
diff --git a/src/common/docman/include/webdav.php
b/src/common/docman/include/webdav.php
index e60cb12..b7b5f11 100644
--- a/src/common/docman/include/webdav.php
+++ b/src/common/docman/include/webdav.php
@@ -239,9 +239,9 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server {
$analysed_path = $this->analyse($subpath, $group_id);
if ($analysed_path['isdir']) {
- echo "<html><meta http-equiv='Content-Type'
content='text/html charset=UTF-8' /><head><title>"._('Index of').'
'.htmlspecialchars($subpath)."</title></head>\n";
+ echo "<html><head><meta http-equiv='Content-Type'
content='text/html charset=UTF-8' /><title>"._('Index of').'
'.urldecode($subpath)."</title></head>\n";
echo "<body>\n";
- echo html_e('h1', array(), _('Index of').'
'.htmlspecialchars($subpath));
+ echo html_e('h1', array(), _('Index of').'
'.urldecode($subpath));
echo "<ul>";
if ( '/' != $subpath ) {
if ('/' == strrchr($options['path'], '/')) {
@@ -261,7 +261,7 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server {
$subpath .= '/';
}
while ($arr = db_fetch_array($res)) {
- echo
'<li>'.util_make_link('/docman/view.php/'.$group_id.'/webdav'.$subpath.$arr['groupname'],
$arr['groupname']).'</li>';
+ echo
'<li>'.util_make_link('/docman/view.php/'.$group_id.'/webdav'.$subpath.urlencode($arr['groupname']),
$arr['groupname']).'</li>';
}
$res = db_query_params('select filename, filetype from
docdata_vw where group_id = $1 and doc_group = $2 and stateid = ANY ($3)',
array($group_id,
$analysed_path['doc_group'], db_int_array_to_any_clause(array(1, 5))));
@@ -608,7 +608,7 @@ class HTTP_WebDAV_Server_Docman extends HTTP_WebDAV_Server {
if ($path_arr[$i] == '') {
continue;
}
- $analysed_path = $this->whatIsIt($path_arr[$i],
$group_id, $analysed_path);
+ $analysed_path =
$this->whatIsIt(urldecode($path_arr[$i]), $group_id, $analysed_path);
}
return $analysed_path;
-----------------------------------------------------------------------
Summary of changes:
src/common/docman/include/webdav.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits