diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-02-19 17:19:54 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-02-19 17:19:54 +0100 |
commit | 75a7bcb10cf441e4e07a7ade76c91d88574da336 (patch) | |
tree | f057e6f59e33033896b6d1ef9c99df0fc75894b6 /lib/base.php | |
parent | df58eea93fb969a60b6cf4e9fca0fd2173b406a0 (diff) | |
parent | cbe31fbf5775382d7de6f22b25e4ab798b895d0f (diff) | |
download | nextcloud-server-75a7bcb10cf441e4e07a7ade76c91d88574da336.tar.gz nextcloud-server-75a7bcb10cf441e4e07a7ade76c91d88574da336.zip |
Merge pull request #14199 from owncloud/cast-type-manually
Manually type-cast all AJAX files
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php index 8d3baab752e..10f5a5c4302 100644 --- a/lib/base.php +++ b/lib/base.php @@ -980,13 +980,13 @@ class OC { //setup extra user backends OC_User::setupBackends(); - if (OC_User::login($_POST["user"], $_POST["password"])) { + if (OC_User::login((string)$_POST["user"], (string)$_POST["password"])) { $userId = OC_User::getUser(); // setting up the time zone if (isset($_POST['timezone-offset'])) { - self::$server->getSession()->set('timezone', $_POST['timezone-offset']); - self::$server->getConfig()->setUserValue($userId, 'core', 'timezone', $_POST['timezone']); + self::$server->getSession()->set('timezone', (string)$_POST['timezone-offset']); + self::$server->getConfig()->setUserValue($userId, 'core', 'timezone', (string)$_POST['timezone']); } self::cleanupLoginTokens($userId); |