Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-11-22 17:00:08 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2013-11-22 17:00:08 +0400
commit2cc0c90015aca5ea287dadd8c0edc3925a573426 (patch)
treefa167c6073e5edc6207f2f3c415e08ec09714a64 /public.php
parent7e4f50d4e385e1d55b7839146a82dd48cb657c2a (diff)
set incognito mode for public.php calls. Because in this case ownCloud should always work the same way as if no user is logged in
Diffstat (limited to 'public.php')
-rw-r--r--public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/public.php b/public.php
index 1781632bc78..203372fe1ea 100644
--- a/public.php
+++ b/public.php
@@ -20,6 +20,7 @@ try {
OC_Util::checkAppEnabled($app);
OC_App::loadApp($app);
+ OC_User::setIncognitoMode(true);
require_once OC_App::getAppPath($app) .'/'. $parts[1];