summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 21:15:48 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 21:18:20 +0200
commit24bb7d16b7f72b4438cb79ff55cdcd4a5e66062c (patch)
tree036e7a9d870c93866565c4f8aca97e38f8edadc4 /lib
parent366ae6661d1491a7f3db9396e05fd24034a1102f (diff)
downloadnextcloud-server-24bb7d16b7f72b4438cb79ff55cdcd4a5e66062c.tar.gz
nextcloud-server-24bb7d16b7f72b4438cb79ff55cdcd4a5e66062c.zip
urlencode filename in search result, fixes problems with & in name
Diffstat (limited to 'lib')
-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';