Changeset 4127


Ignore:
Timestamp:
04/25/11 14:03:41 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1739 - Login com certificado em atributo customizável

Location:
branches/2.2.0.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/phpgwapi/templates/default/login_default.php

    r4012 r4127  
    116116        if(isset($_POST['certificado']) && $_POST['certificado']) 
    117117        { 
    118             //$xcert = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 
    119             $_SESSION['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado'])); 
     118 
     119            $_SESSION['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
    120120        } 
    121121        if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 
  • branches/2.2.0.1/preferences/handlecertificate.php

    r4123 r4127  
    2525        require_once('../security/classes/Verifica_Certificado.php'); 
    2626        include('../security/classes/Verifica_Certificado_conf.php'); 
    27         $cert =str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 
    28         $cert = troca_espaco_por_mais($cert); 
     27        $cert = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
    2928        $c = new certificadoB(); 
    3029        $c->certificado($cert); 
  • branches/2.2.0.1/security/vercert.php

    r3991 r4127  
    2323require_once('classes/Verifica_Certificado.php'); 
    2424include('classes/Verifica_Certificado_conf.php'); 
    25 $cert =str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 
    26 $cert = troca_espaco_por_mais($cert); 
     25$cert = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
    2726$c = new certificadoB(); 
    2827$c->certificado($cert); 
Note: See TracChangeset for help on using the changeset viewer.