https://bugs.contribs.org/show_bug.cgi?id=10622

--- Comment #42 from Terry Fage <[email protected]> ---
Needs following fix, note ~ inside escape char ' that took a bit of reading to
find can also use /  limited testing shows no warning message, no blowups :-) :

#if (ereg('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext) &&
ereg('Code Signing', $certtest)) {
        if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~',
$certtext) && preg_match('~Code Signing~', $certtest)) {
                $cert_type = 'email_codesigning';
        }
        #if (ereg('OpenSSL.* (E.?mail|Personal) .*Certificate', $certtext)) {
        if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~',
$certtext)) {
                $cert_type = 'email';
        }
        #elseif (ereg('OpenSSL.* Server .*Certificate', $certtext)) {
        elseif (preg_match('~OpenSSL.* Server .*Certificate~', $certtext)) {
                $cert_type = 'server';
        }
        #elseif (ereg('timeStamping|Time Stamping', $certtext)) {
        elseif (preg_match('~timeStamping|Time Stamping~', $certtext)) {
                $cert_type = 'time_stamping';
        }
        #elseif (ereg('TLS Web Client Authentication', $certtext) && ereg('TLS
Web Server Authentication', $certtext)) {
        elseif (preg_match('~TLS Web Client Authentication~', $certtext) &&
preg_match('~TLS Web Server Authentication~', $certtext)) {
                $cert_type = 'vpn_client_server';
        }
        #elseif (ereg('TLS Web Client Authentication', $certtext)) {
        elseif (preg_match('~TLS Web Client Authentication~', $certtext)) {
                $cert_type = 'vpn_client';
        }
        #elseif (ereg('TLS Web Server Authentication', $certtext)) {
        elseif (preg_match('~TLS Web Server Authentication~', $certtext)) {
                $cert_type = 'vpn_server';

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to