Commit 128b2a8c authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1000 - Error in salt size in tform.inc.php.orig

parent bab36b51
...@@ -783,7 +783,7 @@ class tform { ...@@ -783,7 +783,7 @@ class tform {
$sql_insert_key .= "`$key`, "; $sql_insert_key .= "`$key`, ";
if($field['encryption'] == 'CRYPT') { if($field['encryption'] == 'CRYPT') {
$salt="$1$"; $salt="$1$";
for ($n=0;$n<11;$n++) { for ($n=0;$n<8;$n++) {
$salt.=chr(mt_rand(64,126)); $salt.=chr(mt_rand(64,126));
} }
$salt.="$"; $salt.="$";
...@@ -816,7 +816,7 @@ class tform { ...@@ -816,7 +816,7 @@ class tform {
if($field['formtype'] == 'PASSWORD') { if($field['formtype'] == 'PASSWORD') {
if(isset($field['encryption']) && $field['encryption'] == 'CRYPT') { if(isset($field['encryption']) && $field['encryption'] == 'CRYPT') {
$salt="$1$"; $salt="$1$";
for ($n=0;$n<11;$n++) { for ($n=0;$n<8;$n++) {
$salt.=chr(mt_rand(64,126)); $salt.=chr(mt_rand(64,126));
} }
$salt.="$"; $salt.="$";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment