From ec40f5719982dc631fb775ba3f7137f5f46961ae Mon Sep 17 00:00:00 2001 From: tbrehm Date: Tue, 6 Mar 2012 12:28:03 +0000 Subject: [PATCH] Fixed mysql encryption function in remoting_lib.inc.php --- interface/lib/classes/remoting_lib.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php index 30575546f..f9b6e72e5 100644 --- a/interface/lib/classes/remoting_lib.inc.php +++ b/interface/lib/classes/remoting_lib.inc.php @@ -611,6 +611,10 @@ class remoting_lib { if($field['formtype'] == 'PASSWORD') { if($field['encryption'] == 'CRYPT') { $record[$key] = $app->auth->crypt_password(stripslashes($record[$key])); + } elseif ($field['encryption'] == 'MYSQL') { + $sql_insert_val .= "PASSWORD('".$app->db->quote($record[$key])."'), "; + } elseif ($field['encryption'] == 'CLEARTEXT') { + $sql_insert_val .= "'".$app->db->quote($record[$key])."', "; } else { $record[$key] = md5($record[$key]); } -- GitLab