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

remotes/origin/stable45
Bart Visscher 13 years ago
parent 366ae6661d
commit 24bb7d16b7
  1. 1
      lib/search/provider/file.php

@ -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';

Loading…
Cancel
Save