From cc4f64a640ddc3acfa8f6c68eb3f5aacee344aa0 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 15 Mar 2007 19:49:44 +0000 Subject: [PATCH] --- interface/lib/classes/tform.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php index a7f821a79..fc48d62e1 100644 --- a/interface/lib/classes/tform.inc.php +++ b/interface/lib/classes/tform.inc.php @@ -672,7 +672,7 @@ class tform { if($field['formtype'] == 'PASSWORD') { $sql_insert_key .= "`$key`, "; if($field['encryption'] == 'CRYPT') { - $sql_insert_val .= "'".crypt($record[$key])."', "; + $sql_insert_val .= "encrypt('".$record[$key]."'), "; } else { $sql_insert_val .= "md5('".$record[$key]."'), "; } @@ -690,7 +690,7 @@ class tform { } else { if($field['formtype'] == 'PASSWORD') { if($field['encryption'] == 'CRYPT') { - $sql_update .= "`$key` = '".crypt($record[$key])."', "; + $sql_update .= "`$key` = encrypt('".$record[$key]."'), "; } else { $sql_update .= "`$key` = md5('".$record[$key]."'), "; } -- GitLab