Changeset 5010 for branches/2.3/phpgwapi


Ignore:
Timestamp:
08/31/11 13:51:20 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2251 - No login/ "acolhimento" do certificado, não esta sendo testado se o mesmo esta revogado.

File:
1 edited

Legend:

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

    r4951 r5010  
    6565            $aux = strtr($aux,' ','+'); 
    6666            $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 
     67            $aux = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),str_replace(chr(0x0D).chr(0x0A),chr(0x0A), $aux)); 
    6768            return $aux; 
    6869        } 
     
    114115                unset($sslattributes); 
    115116        } 
    116         if(isset($_POST['certificado']) && $_POST['certificado']) 
     117        if(isset($_POST['certificado']) && $_POST['certificado'] && $GLOBALS['phpgw_info']['server']['certificado']==1) 
    117118        { 
    118             $_SESSION['login_certificate'] = troca_espaco_por_mais(str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']))); 
     119            $_SESSION['login_certificate'] = troca_espaco_por_mais($_POST['certificado']); 
    119120        } 
    120121        if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 
Note: See TracChangeset for help on using the changeset viewer.