diff options
author | Scott <scott@paragonie.com> | 2015-12-10 09:48:13 -0500 |
---|---|---|
committer | Scott <scott@paragonie.com> | 2015-12-10 09:48:13 -0500 |
commit | d762ee5b099a29044603cd4649851e81aa66cb47 (patch) | |
tree | 646fdc0d8939915dd6e803dac89589d4d29b80b4 | |
parent | b3cbb3782fc25f0b3154a89d896d81d99b87cfa3 (diff) | |
download | random_compat-d762ee5b099a29044603cd4649851e81aa66cb47.zip random_compat-d762ee5b099a29044603cd4649851e81aa66cb47.tar.gz random_compat-d762ee5b099a29044603cd4649851e81aa66cb47.tar.bz2 |
Fix disabled classes check (thanks @narfbg)1.1.4
-rw-r--r-- | lib/random.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/random.php b/lib/random.php index 48e2f28..8898a35 100644 --- a/lib/random.php +++ b/lib/random.php @@ -90,9 +90,9 @@ if (PHP_VERSION_ID < 70000) { extension_loaded('com_dotnet') && class_exists('COM') ) { - $RandomCompat_disabled_classes = explode( - ',', - strtolower(ini_get('disabled_classes')) + $RandomCompat_disabled_classes = preg_split( + '#\s*,\s*#', + strtolower(ini_get('disable_classes')) ); if (!in_array('com', $RandomCompat_disabled_classes)) { |