Changeset 4012
- Timestamp:
- 04/13/11 15:51:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/phpgwapi/templates/default/login_default.php
r3999 r4012 57 57 } 58 58 } 59 function troca_espaco_por_mais($pem_data)59 function troca_espaco_por_mais($pem_data) 60 60 { 61 61 $begin = "CERTIFICATE-----"; … … 114 114 unset($sslattributes); 115 115 } 116 116 if(isset($_POST['certificado']) && $_POST['certificado']) 117 { 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'])); 120 } 117 121 if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) ) 118 122 { … … 207 211 list($forward,$extra_vars) = explode('?',$forward,2); 208 212 } 209 if(isset($_POST['certificado']) && $_POST['certificado']) 210 { 211 //$xcert = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado']); 212 $GLOBALS['phpgw_info']['user']['login_certificado'] = troca_espaco_por_mais(str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado'])); 213 } 213 214 214 if ($GLOBALS['phpgw_info']['server']['use_https'] != 2) 215 215 {
Note: See TracChangeset
for help on using the changeset viewer.