mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
possible fix for file_get_contents warning.
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* Simple XML Parser
|
* Simple XML Parser
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
|
||||||
* $Revision: 1.32 $
|
* $Revision: 1.33 $
|
||||||
* $Date: 2009-10-22 04:14:35 $
|
* $Date: 2009-10-24 08:10:46 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -278,7 +278,7 @@ class xmlClass
|
|||||||
if (function_exists('file_get_contents'))
|
if (function_exists('file_get_contents'))
|
||||||
{
|
{
|
||||||
$old_timeout = e107_ini_set('default_socket_timeout', $timeout);
|
$old_timeout = e107_ini_set('default_socket_timeout', $timeout);
|
||||||
$data = file_get_contents(urlencode($address));
|
$data = file_get_contents(urldecode($address));
|
||||||
|
|
||||||
// $data = file_get_contents(htmlspecialchars($address)); // buggy - sometimes fails.
|
// $data = file_get_contents(htmlspecialchars($address)); // buggy - sometimes fails.
|
||||||
if ($old_timeout !== FALSE)
|
if ($old_timeout !== FALSE)
|
||||||
|
Reference in New Issue
Block a user