summaryrefslogtreecommitdiffstats
path: root/application/third_party
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-03 16:33:26 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-03 16:33:26 +0100
commit84cd95e84d369e243bae0c27828b9ae1aba8be94 (patch)
tree7c98176370b62f0eb57eac455ebbc088eef6a366 /application/third_party
parent85ed18437d8c0b398531d97f38ac0dd1449f7cc6 (diff)
Suppress open_basedir warning for /dev/urandom
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/third_party')
-rw-r--r--application/third_party/PasswordHash.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/third_party/PasswordHash.php b/application/third_party/PasswordHash.php
index 12958c7f1..84447b277 100644
--- a/application/third_party/PasswordHash.php
+++ b/application/third_party/PasswordHash.php
@@ -48,7 +48,7 @@ class PasswordHash {
function get_random_bytes($count)
{
$output = '';
- if (is_readable('/dev/urandom') &&
+ if (@is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);