Changeset 5007


Ignore:
Timestamp:
08/30/11 16:44:04 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2250 - Alerta , indevido, de certificado revogado

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/security/classes/funcoes_auxiliares.php

    r4947 r5007  
    159159            $aux = strtr($aux,' ','+'); 
    160160            $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 
     161            $aux = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),str_replace(chr(0x0D).chr(0x0A),chr(0x0A), $aux)); 
    161162            return $aux; 
    162163        } 
     164 
    163165        function verificaopenssl() 
    164166        { 
     
    172174 
    173175 
    174         function print_hex($value) 
     176        function print_hex($value) 
    175177        { 
    176178                $tab_val = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); 
     
    17421744                $dados['INICIO_VALIDADE'] = data_hora($cert_data[1][0][1][$KK][1][0][1]); 
    17431745                $dados['FIM_VALIDADE'] = data_hora($cert_data[1][0][1][$KK][1][1][1]); 
    1744                 $agora = date('YmdHis'); 
     1746                $agora = data_hora(date('y').date('m').date('d').date('H').date('i').date('s')); 
    17451747                if(($agora < $dados['INICIO_VALIDADE']) || ($agora > $dados['FIM_VALIDADE'])) 
    17461748                        { 
Note: See TracChangeset for help on using the changeset viewer.