summaryrefslogtreecommitdiffstats
path: root/lib/search
diff options
context:
space:
mode:
Diffstat (limited to 'lib/search')
-rw-r--r--lib/search/provider/file.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/search/provider/file.php b/lib/search/provider/file.php
index e21278f3918..21fae0c1ce5 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';