Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
128b2a8c
Commit
128b2a8c
authored
Dec 04, 2009
by
tbrehm
Browse files
Fixed: FS#1000 - Error in salt size in tform.inc.php.orig
parent
bab36b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform.inc.php
View file @
128b2a8c
...
...
@@ -783,7 +783,7 @@ class tform {
$sql_insert_key
.
=
"`
$key
`, "
;
if
(
$field
[
'encryption'
]
==
'CRYPT'
)
{
$salt
=
"$1$"
;
for
(
$n
=
0
;
$n
<
11
;
$n
++
)
{
for
(
$n
=
0
;
$n
<
8
;
$n
++
)
{
$salt
.
=
chr
(
mt_rand
(
64
,
126
));
}
$salt
.
=
"$"
;
...
...
@@ -816,7 +816,7 @@ class tform {
if
(
$field
[
'formtype'
]
==
'PASSWORD'
)
{
if
(
isset
(
$field
[
'encryption'
])
&&
$field
[
'encryption'
]
==
'CRYPT'
)
{
$salt
=
"$1$"
;
for
(
$n
=
0
;
$n
<
11
;
$n
++
)
{
for
(
$n
=
0
;
$n
<
8
;
$n
++
)
{
$salt
.
=
chr
(
mt_rand
(
64
,
126
));
}
$salt
.
=
"$"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment