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

Annotation of /rpms/phpki/contribs10/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)
Tue Nov 24 14:35:59 2020 UTC (3 years, 11 months ago) by brianr
Branch: MAIN
CVS Tags: phpki-0_82-24_el7_sme, HEAD
Initial import

1 brianr 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