Skip to content

Commit

Permalink
Update application/third_party/PasswordHash.php
Browse files Browse the repository at this point in the history
  • Loading branch information
iz6nnh committed Mar 18, 2012
1 parent c8b8731 commit b4cfc96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/third_party/PasswordHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ function PasswordHash($iteration_count_log2, $portable_hashes)
function get_random_bytes($count)
{
$output = '';
if (is_readable('/dev/urandom') &&
if (@is_readable('/dev/urandom') &&
#if (is_readable('/dev/urandom') && Whitout "@" some web-hosting go to is_readable
#error because you cannot access directly /dev/* files. It's a security throuble who happen to me
#so I fixed
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);
Expand Down

3 comments on commit b4cfc96

@magicbug
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've added this change to the latest version, you might like to check it out!

@iz6nnh
Copy link
Owner Author

@iz6nnh iz6nnh commented on b4cfc96 Apr 12, 2012 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magicbug
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

We currently dont support multi-language thats not to say we wont! the framework we're using supports it

http://codeigniter.com/user_guide/libraries/language.html

If your interested in helping with this open an issue on the main github area for the Cloudlog project :)

Please sign in to comment.