From: Tom Needham Date: Tue, 3 Apr 2012 21:14:55 +0000 (+0000) Subject: Dont typecast variables as integers X-Git-Tag: v4.0.0beta~381^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=95c2ac5d585bfd1106b173c00b4c29719c08b25f;p=nextcloud-server.git Dont typecast variables as integers --- diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index da0428e3ced..9529c0c957c 100644 --- a/core/lostpassword/index.php +++ b/core/lostpassword/index.php @@ -12,7 +12,7 @@ require_once('../../lib/base.php'); // Someone lost their password: if (isset($_POST['user'])) { if (OC_User::userExists($_POST['user'])) { - $token = sha1($_POST['user']+uniqId()); + $token = sha1($_POST['user'].uniqId()); OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword', $token); $email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', ''); if (!empty($email)) {