diff options
author | Benny Baumann <BenBE@geshi.org> | 2014-11-23 15:02:56 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2014-11-23 15:02:56 +0100 |
commit | 0bae20ba9f726c964eaee62a3b41c2da65bb8f0b (patch) | |
tree | f8d6b2f1f08845c98fea516d4005394fae9f3397 /scripts/cron/warning.php | |
parent | 7d6bbbd7c52dab0393d2abe64839f00c69390c75 (diff) | |
parent | c2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9 (diff) | |
download | cacert-devel-0bae20ba9f726c964eaee62a3b41c2da65bb8f0b.tar.gz cacert-devel-0bae20ba9f726c964eaee62a3b41c2da65bb8f0b.tar.xz cacert-devel-0bae20ba9f726c964eaee62a3b41c2da65bb8f0b.zip |
Merge branch 'bug-1273' into release
Diffstat (limited to 'scripts/cron/warning.php')
-rwxr-xr-x | scripts/cron/warning.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/cron/warning.php b/scripts/cron/warning.php index 8f607cd..db5da4f 100755 --- a/scripts/cron/warning.php +++ b/scripts/cron/warning.php @@ -1,5 +1,5 @@ #!/usr/bin/php -q -<? /* +<?php /* LibreSSL - CAcert web application Copyright (C) 2004-2008 CAcert Inc. @@ -18,6 +18,7 @@ */ require_once(dirname(__FILE__).'/../../includes/mysql.php'); + require_once(dirname(__FILE__).'/../../includes/lib/general.php'); $days = array("1" => "3", "15" => "2", "30" => "1", "45" => "0"); @@ -39,7 +40,7 @@ $row['crt_name'] = str_replace("../", "www/", $row['crt_name']); $row['crt_name'] = "/home/cacert/".$row['crt_name']; $crt_name = escapeshellarg($row['crt_name']); - $subject = `openssl x509 -in $crt_name -text -noout|grep Subject:`; + $subject = runCommand("openssl x509 -in $crt_name -text -noout|grep Subject:"); $bits = explode("/", $subject); foreach($bits as $val) { |