From c2cc1c5e3f8f4b7ec9b786cffbb6f8ec68fcefc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20D=C3=B6rre?= Date: Tue, 21 Oct 2014 22:38:35 +0200 Subject: bug-1273: fixing backticks in 'warning'-cron-script --- scripts/cron/warning.php | 5 +++-- 1 file 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 - "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) { -- cgit v1.2.1