/[smecontribs]/rpms/phpki/contribs9/phpki-0.82-fix-preg_match.patch
ViewVC logotype

Annotation of /rpms/phpki/contribs9/phpki-0.82-fix-preg_match.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Nov 17 13:20:42 2018 UTC (6 years ago) by jcrisp
Branch: MAIN
CVS Tags: phpki-0_82-21_el6_sme, phpki-0_82-22_el6_sme, phpki-0_82-20_el6_sme, phpki-0_82-23_el6_sme, phpki-0_82-19_el6_sme, HEAD
* Sat Nov 17 2018 Terry Fage <tfage@yahoo.com.au> 0.82-19.sme
- Fix preg_match warnings [SME:10622]

1 jcrisp 1.1 diff -ruN phpki.old/phpki-0.82/include/openssl_functions.php phpki/phpki-0.82/include/openssl_functions.php
2     --- phpki.old/phpki-0.82/include/openssl_functions.php 2018-11-17 14:06:06.551603435 +0100
3     +++ phpki/phpki-0.82/include/openssl_functions.php 2018-11-17 14:07:21.651270471 +0100
4     @@ -801,31 +801,31 @@
5     $certtext = CA_cert_text($serial);
6    
7     #if (ereg('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext) && ereg('Code Signing', $certtest)) {
8     - if (preg_match('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext) && preg_match('Code Signing', $certtest)) {
9     + if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~', $certtext) && preg_match('~Code Signing~', $certtest)) {
10     $cert_type = 'email_codesigning';
11     }
12     #if (ereg('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext)) {
13     - if (preg_match('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext)) {
14     + if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~', $certtext)) {
15     $cert_type = 'email';
16     }
17     #elseif (ereg('OpenSSL.* Server .*Certificate', $certtext)) {
18     - elseif (preg_match('OpenSSL.* Server .*Certificate', $certtext)) {
19     + elseif (preg_match('~OpenSSL.* Server .*Certificate~', $certtext)) {
20     $cert_type = 'server';
21     }
22     #elseif (ereg('timeStamping|Time Stamping', $certtext)) {
23     - elseif (preg_match('timeStamping|Time Stamping', $certtext)) {
24     + elseif (preg_match('~timeStamping|Time Stamping~', $certtext)) {
25     $cert_type = 'time_stamping';
26     }
27     #elseif (ereg('TLS Web Client Authentication', $certtext) && ereg('TLS Web Server Authentication', $certtext)) {
28     - elseif (preg_match('TLS Web Client Authentication', $certtext) && preg_match('TLS Web Server Authentication', $certtext)) {
29     + elseif (preg_match('~TLS Web Client Authentication~', $certtext) && preg_match('~TLS Web Server Authentication~', $certtext)) {
30     $cert_type = 'vpn_client_server';
31     }
32     #elseif (ereg('TLS Web Client Authentication', $certtext)) {
33     - elseif (preg_match('TLS Web Client Authentication', $certtext)) {
34     + elseif (preg_match('~TLS Web Client Authentication~', $certtext)) {
35     $cert_type = 'vpn_client';
36     }
37     #elseif (ereg('TLS Web Server Authentication', $certtext)) {
38     - elseif (preg_match('TLS Web Server Authentication', $certtext)) {
39     + elseif (preg_match('~TLS Web Server Authentication~', $certtext)) {
40     $cert_type = 'vpn_server';
41     }
42     else {

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