forked from GNUsocial/gnu-social
Suppress errors when checking for the existence of files that might be restricted by open_basedir - should resolve issue #1310
This commit is contained in:
@@ -966,7 +966,7 @@ function common_root_url($ssl=false)
|
||||
function common_good_rand($bytes)
|
||||
{
|
||||
// XXX: use random.org...?
|
||||
if (file_exists('/dev/urandom')) {
|
||||
if (@file_exists('/dev/urandom')) {
|
||||
return common_urandom($bytes);
|
||||
} else { // FIXME: this is probably not good enough
|
||||
return common_mtrand($bytes);
|
||||
|
||||
Reference in New Issue
Block a user