[Pkg-owncloud-commits] [owncloud] 86/118: when the path doesnt exist show a proper error page
David Prévot
taffit at moszumanska.debian.org
Fri Mar 27 22:13:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit f7f14708a2b1dd9695187a80ebf04ad4a1dea9a8
Author: Robin Appelman <icewind at owncloud.com>
Date: Tue Mar 24 12:21:25 2015 +0100
when the path doesnt exist show a proper error page
---
apps/files_sharing/lib/controllers/sharecontroller.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index 1bb3666..b224b7d 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -154,6 +154,8 @@ class ShareController extends Controller {
if (Filesystem::isReadable($originalSharePath . $path)) {
$getPath = Filesystem::normalizePath($path);
$originalSharePath .= $path;
+ } else {
+ throw new OCP\Files\NotFoundException();
}
$file = basename($originalSharePath);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list