diff options
author | Anthony Ferrara <me@ircmaxell.com> | 2014-01-08 10:41:15 -0800 |
---|---|---|
committer | Anthony Ferrara <me@ircmaxell.com> | 2014-01-08 10:41:15 -0800 |
commit | ed1c0fb552fba2121c2820f883f3e7ff367981e1 (patch) | |
tree | f832fd4d23abfac4333df7c461f42c5ab4be4e45 | |
parent | 2215cf1fe9320d07ec14abbb49c7ca6a8996dc3c (diff) | |
parent | 553c957a5e8d6ed7cd2e788b6212c208e5991db4 (diff) | |
download | password_compat-ed1c0fb552fba2121c2820f883f3e7ff367981e1.zip password_compat-ed1c0fb552fba2121c2820f883f3e7ff367981e1.tar.gz password_compat-ed1c0fb552fba2121c2820f883f3e7ff367981e1.tar.bz2 |
Merge pull request #41 from Jacques1/open-basedir-fix
Prevent warnings from open_basedir
-rw-r--r-- | lib/password.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/password.php b/lib/password.php index 33b9130..6ad23d5 100644 --- a/lib/password.php +++ b/lib/password.php @@ -99,7 +99,7 @@ if (!defined('PASSWORD_DEFAULT')) { $buffer_valid = true; } } - if (!$buffer_valid && is_readable('/dev/urandom')) { + if (!$buffer_valid && @is_readable('/dev/urandom')) { $f = fopen('/dev/urandom', 'r'); $read = PasswordCompat\binary\_strlen($buffer); while ($read < $raw_salt_len) { |