From 60f3a93e24c4752c92f5c3d2c1a027b128dcc793 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 18 Mar 2016 11:52:46 -0400 Subject: [PATCH] Add even more possible values for open_basedir --- lib/random.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/random.php b/lib/random.php index 3b8952f..dedd453 100644 --- a/lib/random.php +++ b/lib/random.php @@ -92,10 +92,10 @@ PATH_SEPARATOR, strtolower($RandomCompat_basedir) ); - $RandomCompatUrandom = in_array( - '/dev', + $RandomCompatUrandom = (array() !== array_intersect( + array('/dev', '/dev/', '/dev/urandom'), $RandomCompat_open_basedir - ); + )); $RandomCompat_open_basedir = null; }