1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Bugfixes - incorrect admin perms displayed in admin area.

Xml-class was breaking page-load on some systems.
This commit is contained in:
CaMer0n
2011-07-06 03:17:00 +00:00
parent 722b96538d
commit ea40b6fd28
3 changed files with 20 additions and 13 deletions

View File

@@ -272,7 +272,7 @@ class xmlClass
$timeout = max($timeout, 3);
$address = str_replace(array("\r", "\n", "\t"), '', $address); // May be paranoia, but streaky thought it might be a good idea
// ... and there shouldn't be unprintable characters in the URL anyway
if (function_exists('file_get_contents'))
if (function_exists('file_get_contents') && ini_get('allow_url_fopen'))
{
$old_timeout = e107_ini_set('default_socket_timeout', $timeout);
$data = file_get_contents(urldecode($address));