/[smecontribs]/rpms/phpki/contribs8/phpki-0.82-remove_email_from_upload_file_name.patch2
ViewVC logotype

Annotation of /rpms/phpki/contribs8/phpki-0.82-remove_email_from_upload_file_name.patch2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri May 24 22:17:29 2013 UTC (11 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: phpki-0_82-17_el5_sme, phpki-0_82-16_el5_sme, HEAD
Initial import

1 unnilennium 1.1 diff -Nur -x '*.orig' -x '*.rej' phpki/phpki-0.82/search.php mezzanine_patched_phpki/phpki-0.82/search.php
2     --- phpki/phpki-0.82/search.php 2005-11-16 00:54:37.000000000 +0100
3     +++ mezzanine_patched_phpki/phpki-0.82/search.php 2009-01-07 11:42:58.000000000 +0100
4     @@ -36,7 +36,12 @@
5    
6     case 'download':
7     $rec = CAdb_get_entry($serial);
8     - upload("$config[cert_dir]/$serial.der", "$rec[common_name] ($rec[email]).cer", 'application/pkix-cert');
9     + upload("$config[cert_dir]/$serial.der", "$rec[common_name].cer", 'application/pkix-cert');
10     + break;
11     +
12     +case 'download_pem':
13     + $rec = CAdb_get_entry($serial);
14     + upload("$config[new_certs_dir]/$serial.pem", "$rec[common_name].pem", 'application/pkix-cert');
15     break;
16    
17     case search:
18     @@ -97,6 +102,7 @@
19     if ($rec['status'] != 'Revoked') {
20     ?>
21     <a href=<?=$PHP_SELF?>?stage=download&serial=<?=htvar($rec['serial'])?>><img src=images/download.png alt="Download" title="Download the certificate so that you may send encrypted e-mail"></a>
22     + <a href=<?=$PHP_SELF?>?stage=download_pem&serial=<?=htvar($rec['serial'])?>><img src=images/download.png alt="Download (in PEM format)" title="Download in PEM format"></a>
23     <?
24     }
25     print '</td></tr>';

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed