Permalink
Browse files

Fix open_basedir error in passwordhash.php fixes issue #128

  • Loading branch information...
1 parent 14c6cbb commit 83b814c8428bae51926f702edea0b0712b3ca221 @markkevans markkevans committed with haraldpdl Nov 13, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 catalog/admin/includes/classes/passwordhash.php
  2. +1 −1 catalog/includes/classes/passwordhash.php
@@ -48,7 +48,7 @@ function PasswordHash($iteration_count_log2, $portable_hashes)
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);
@@ -48,7 +48,7 @@ function PasswordHash($iteration_count_log2, $portable_hashes)
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);

0 comments on commit 83b814c

Please sign in to comment.