Changeset 1255

Show
Ignore:
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
  • trunk/CHANGELOG

    r1254 r1255  
    11ispCP ω 1.0.0 Changelog 
     2~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    23 
    342008-07-01 Marc Pujol 
    45        - GUI: 
     6                * Fixed #1372: Proftpd accept autentificate with password made by first 8 chars of the original password (Thanks sci2tech) 
     7 
     82008-07-01 Marc Pujol 
     9        - GUI: 
    510                * Fixed #1352 PHPmyadmin login from control panel not working (thanks Machaven) 
    6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    711 
    8122008-06-29 Benedikt Heintel 
  • trunk/gui/include/calc-functions.php

    r1246 r1255  
    9292// 
    9393 
    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  
    10094function get_salt_from($data) { 
    10195    $salt = substr($data, 0, 2); 
     
    109103 
    110104function crypt_user_ftp_pass($data) { 
    111     $res = crypt($data, generate_rand_salt()); 
     105    $res = crypt($data); 
    112106    return $res; 
    113107}