summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-10-21 22:38:35 +0200
committerFelix Dörre <felix@dogcraft.de>2014-10-21 22:38:35 +0200
commitc2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9 (patch)
tree916620ad612896f9ba9aec74f528104fff821f71
parente288e77fc593546daeb016fdfea571d860cc2f2a (diff)
downloadcacert-devel-c2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9.tar.gz
cacert-devel-c2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9.tar.xz
cacert-devel-c2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9.zip
bug-1273: fixing backticks in 'warning'-cron-scriptbug-1273
-rwxr-xr-xscripts/cron/warning.php5
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)
{