From b6034665c18bc6d394cceb3b948195f43ed9cf86 Mon Sep 17 00:00:00 2001 From: Andreas Boehler Date: Mon, 10 Aug 2015 20:26:47 +0200 Subject: [PATCH] Fix password changing (a VERY nasty bug) --- lib/helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helper.php b/lib/helper.php index 08c081b..8f16311 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -184,7 +184,7 @@ class Helper { $result = $this -> db -> prepare($query); foreach($params as $param => $value) { - $result -> bindParam(":".$param, $value); + $result -> bindValue(":".$param, $value); } \OCP\Util::writeLog('OC_USER_SQL', "Executing query...", \OCP\Util::DEBUG); if(!$result -> execute()) @@ -241,4 +241,4 @@ class Helper { } -} \ No newline at end of file +}