diff options
author | Scott <scott@paragonie.com> | 2015-12-09 14:35:44 -0500 |
---|---|---|
committer | Scott <scott@paragonie.com> | 2015-12-09 14:35:44 -0500 |
commit | b3cbb3782fc25f0b3154a89d896d81d99b87cfa3 (patch) | |
tree | 56955688319ff0d33d2d619006b02b51aa565452 | |
parent | 5f727f8859ceb0f6ccf5d5e73a382b501abf5d43 (diff) | |
download | random_compat-b3cbb3782fc25f0b3154a89d896d81d99b87cfa3.zip random_compat-b3cbb3782fc25f0b3154a89d896d81d99b87cfa3.tar.gz random_compat-b3cbb3782fc25f0b3154a89d896d81d99b87cfa3.tar.bz2 |
Make the check for COM in disabled_classes case insensitive1.1.3
-rw-r--r-- | lib/random.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/random.php b/lib/random.php index bb390ee..48e2f28 100644 --- a/lib/random.php +++ b/lib/random.php @@ -92,10 +92,10 @@ if (PHP_VERSION_ID < 70000) { ) { $RandomCompat_disabled_classes = explode( ',', - ini_get('disabled_classes') + strtolower(ini_get('disabled_classes')) ); - if (!in_array('COM', $RandomCompat_disabled_classes)) { + if (!in_array('com', $RandomCompat_disabled_classes)) { try { $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); if (method_exists($RandomCompatCOMtest, 'GetRandom')) { |