From 24bb7d16b7f72b4438cb79ff55cdcd4a5e66062c Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 28 Sep 2012 21:15:48 +0200 Subject: [PATCH] urlencode filename in search result, fixes problems with & in name --- lib/search/provider/file.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php index e21278f391..21fae0c1ce 100644 --- a/lib/search/provider/file.php +++ b/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';