urlencode filename in search result, fixes problems with & in name

This commit is contained in:
Bart Visscher 2012-09-28 21:15:48 +02:00
parent 366ae6661d
commit 24bb7d16b7

View file

@ -10,6 +10,7 @@ class OC_Search_Provider_File extends OC_Search_Provider{
$name = basename($path);
$text = '';
$path = urlencode($path);
if($mime=='httpd/unix-directory') {
$link = OC_Helper::linkTo( 'files', 'index.php', array('dir' => $path));
$type = 'Files';