2011-04-18 Javier Lanz <javier.lanz@artica.es>

* include/functions_filemanager.php: Added a 'base64_encode' to deal with
	html entities in collection's files

	Fix: #3286063


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4241 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
javilanz 2011-04-18 16:11:17 +00:00
parent 2e3c56cc9e
commit 08ca243c95
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-04-18 Javier Lanz <javier.lanz@artica.es>
* include/functions_filemanager.php: Added a 'base64_encode' to deal with
html entities in collection's files
Fix: #3286063
2011-04-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, godmode/reporting/graph_builder.preview.php:

View File

@ -579,7 +579,7 @@ function file_explorer($real_directory, $relative_directory, $url, $father = '',
}
else {
$hash = md5($fileinfo['url'] . $config['dbpass']);
$data[1] = '<a href="include/get_file.php?file='.$fileinfo['url'].'&hash=' . $hash . '">'.$fileinfo['name'].'</a>';
$data[1] = '<a href="include/get_file.php?file='.base64_encode($fileinfo['url']).'&hash=' . $hash . '">'.$fileinfo['name'].'</a>';
}
$data[2] = ui_print_timestamp ($fileinfo['last_modified'], true,
array ('prominent' => true));