Changeset 1255
- Timestamp:
- 07/01/08 20:28:56
(5 months ago)
- Author:
- kilburn
- Message:
* GUI: Fixed #1372 - Proftpd accept autentificate with password made by first 8 chars of the original password (Thanks sci2tech)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1254 |
r1255 |
|
| 1 | 1 | ispCP ω 1.0.0 Changelog |
|---|
| | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | 2008-07-01 Marc Pujol |
|---|
| 4 | 5 | - GUI: |
|---|
| | 6 | * Fixed #1372: Proftpd accept autentificate with password made by first 8 chars of the original password (Thanks sci2tech) |
|---|
| | 7 | |
|---|
| | 8 | 2008-07-01 Marc Pujol |
|---|
| | 9 | - GUI: |
|---|
| 5 | 10 | * Fixed #1352 PHPmyadmin login from control panel not working (thanks Machaven) |
|---|
| 6 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 7 | 11 | |
|---|
| 8 | 12 | 2008-06-29 Benedikt Heintel |
|---|
| r1246 |
r1255 |
|
| 92 | 92 | // |
|---|
| 93 | 93 | |
|---|
| 94 | | function generate_rand_salt($min = 46, $max = 126) { |
|---|
| 95 | | $salt = chr(mt_rand($min, $max)); |
|---|
| 96 | | $salt .= chr(mt_rand($min, $max)); |
|---|
| 97 | | return $salt; |
|---|
| 98 | | } |
|---|
| 99 | | |
|---|
| 100 | 94 | function get_salt_from($data) { |
|---|
| 101 | 95 | $salt = substr($data, 0, 2); |
|---|
| … | … | |
| 109 | 103 | |
|---|
| 110 | 104 | function crypt_user_ftp_pass($data) { |
|---|
| 111 | | $res = crypt($data, generate_rand_salt()); |
|---|
| | 105 | $res = crypt($data); |
|---|
| 112 | 106 | return $res; |
|---|
| 113 | 107 | } |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>