Skip to content

Commit 128b2a8

Browse files
committed
Fixed: FS#1000 - Error in salt size in tform.inc.php.orig
1 parent bab36b5 commit 128b2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ function getSQL($record, $tab, $action = 'INSERT', $primary_id = 0, $sql_ext_whe
783783
$sql_insert_key .= "`$key`, ";
784784
if($field['encryption'] == 'CRYPT') {
785785
$salt="$1$";
786-
for ($n=0;$n<11;$n++) {
786+
for ($n=0;$n<8;$n++) {
787787
$salt.=chr(mt_rand(64,126));
788788
}
789789
$salt.="$";
@@ -816,7 +816,7 @@ function getSQL($record, $tab, $action = 'INSERT', $primary_id = 0, $sql_ext_whe
816816
if($field['formtype'] == 'PASSWORD') {
817817
if(isset($field['encryption']) && $field['encryption'] == 'CRYPT') {
818818
$salt="$1$";
819-
for ($n=0;$n<11;$n++) {
819+
for ($n=0;$n<8;$n++) {
820820
$salt.=chr(mt_rand(64,126));
821821
}
822822
$salt.="$";

0 commit comments

Comments
 (0)