Changeset 928

Show
Ignore:
Timestamp:
07/31/08 11:57:09 (4 months ago)
Author:
rach
Message:

Patch to clean the import of password from the Database

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/lib/Form/Class.FormHandler.inc.php

    r906 r928  
    10151015                } 
    10161016 
     1017                 
    10171018                $processed = $this->getProcessed();  //$processed['firstname'] 
    10181019 
     
    10761077                                $instance_table = new Table($this->FG_TABLE_NAME, $this->FG_QUERY_EDITION); 
    10771078                                $list = $instance_table -> Get_list ($this->DBHandle, $this->FG_EDITION_CLAUSE, null, null, null, null, 1, 0); 
     1079                                print_r($list); 
     1080                                 
     1081                                //PATCH TO CLEAN THE IMPORT OF PASSWORD FROM THE DATABASE 
     1082                                if( substr_count($this->FG_QUERY_EDITION,"pwd_encoded")>0 ){ 
     1083                                        $tab_field = explode(',',  $this->FG_QUERY_EDITION ) ; 
     1084                                        for ($i=0;$i< count($tab_field);$i++){ 
     1085                                                if(trim($tab_field[$i])=="pwd_encoded") { 
     1086                                                        $list[0][$i]=""; 
     1087                                                } 
     1088                                                 
     1089                                        } 
     1090                                } 
     1091                                 
     1092                                if (isset($list[0]["pwd_encoded"])){ 
     1093                                        $list[0]["pwd_encoded"]="";  
     1094                                 
     1095                                } 
    10781096                        } 
    10791097 


Google