aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichiel de Jong <michiel@unhosted.org>2012-06-09 20:39:24 +0200
committerMichiel de Jong <michiel@unhosted.org>2012-06-09 20:39:24 +0200
commitb46903fa767eae1152bcd285250556ebf13130b9 (patch)
treeea5d30b81245493857091419ec448586c65b81b8
parent897bfa8814eaebe6d0d44b8554b99725819214e7 (diff)
downloadnextcloud-server-b46903fa767eae1152bcd285250556ebf13130b9.tar.gz
nextcloud-server-b46903fa767eae1152bcd285250556ebf13130b9.zip
sanitize when logged in as another user
-rw-r--r--apps/remoteStorage/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/remoteStorage/auth.php b/apps/remoteStorage/auth.php
index ac0e83bb373..f508983d052 100644
--- a/apps/remoteStorage/auth.php
+++ b/apps/remoteStorage/auth.php
@@ -112,7 +112,7 @@ if($userId && $appUrl && $categories) {
}//end 'need to click Allow still'
} else {//login not ok
if($currUser) {
- die('You are logged in as '.$currUser.' instead of '.$userId);
+ die('You are logged in as '.$currUser.' instead of '.htmlentities($userId));
} else {
header('Location: /?redirect_url='.urlencode('/apps/remoteStorage/auth.php'.$_SERVER['PATH_INFO'].'?'.$_SERVER['QUERY_STRING']));
}