Changeset 22280 for branches


Ignore:
Timestamp:
Apr 18, 2013, 3:00:55 PM (11 years ago)
Author:
plg
Message:

bug 2864 fixed: avoid warning on /dev/urandom with open_basedir restriction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/include/passwordhash.class.php

    r18889 r22280  
    4949        {
    5050                $output = '';
    51                 if (is_readable('/dev/urandom') &&
     51                if (@is_readable('/dev/urandom') &&
    5252                    ($fh = @fopen('/dev/urandom', 'rb'))) {
    5353                        $output = fread($fh, $count);
Note: See TracChangeset for help on using the changeset viewer.