]> source.dussan.org Git - nextcloud-server.git/commitdiff
Forget to urlencode the path
authorLukas Reschke <lukas@statuscode.ch>
Wed, 24 Oct 2012 16:00:19 +0000 (18:00 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 24 Oct 2012 16:00:19 +0000 (18:00 +0200)
apps/files_sharing/public.php

index 534f548fb3c44c893b38c830eb3138609ff62a60..105e94f1140631044bd8b7940796262fe21e63e5 100644 (file)
@@ -209,7 +209,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
                                                } else {\r
                                                        $getPath = '';\r
                                                }\r
-                                               $tmpl->assign('downloadURL', OCP\Util::linkToPublic('files').'&download&dir='.urlencode($_GET['dir']).'&path='.$getPath, false);\r
+                                               $tmpl->assign('downloadURL', OCP\Util::linkToPublic('files').'&download&dir='.urlencode($_GET['dir']).'&path='.urlencode($getPath), false);\r
                                        }\r
                                }\r
                                $tmpl->printPage();\r