summaryrefslogtreecommitdiff
path: root/scripts/scanforexponents.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-04-21 20:07:00 +0200
committerMichael Tänzer <neo@nhng.de>2014-04-21 20:07:00 +0200
commitc7c4d077688807bcbec21e11d0aeb0af9ebfbd30 (patch)
tree74ee152df3b0d09497252bbc98453e8fc280a6b4 /scripts/scanforexponents.php
parent29cc1c30533de1f6caa6fa163b95970eee5ab8ef (diff)
downloadcacert-devel-c7c4d077688807bcbec21e11d0aeb0af9ebfbd30.tar.gz
cacert-devel-c7c4d077688807bcbec21e11d0aeb0af9ebfbd30.tar.xz
cacert-devel-c7c4d077688807bcbec21e11d0aeb0af9ebfbd30.zip
Source code taken from cacert-20140419.tar.bz2
Diffstat (limited to 'scripts/scanforexponents.php')
-rwxr-xr-xscripts/scanforexponents.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/scanforexponents.php b/scripts/scanforexponents.php
index 7136723..388fe1e 100755
--- a/scripts/scanforexponents.php
+++ b/scripts/scanforexponents.php
@@ -29,10 +29,11 @@
if(!is_file($file))
continue;
+ $file_esc = escapeshellarg($file);
if(substr($file, -3) == "der")
- $do = trim(`openssl x509 -inform der -in $file -text -noout 2>&1 |grep 'Exponent'`);
+ $do = trim(`openssl x509 -inform der -in $file_esc -text -noout 2>&1 |grep 'Exponent'`);
else
- $do = trim(`openssl x509 -in $file -text -noout 2>&1 |grep 'Exponent'`);
+ $do = trim(`openssl x509 -in $file_esc -text -noout 2>&1 |grep 'Exponent'`);
if($do == "")
continue;