diff --git a/GPL_LIB/Smarty/libs/plugins/function.fetch.php b/GPL_LIB/Smarty/libs/plugins/function.fetch.php index 0539ddabc6431864d6bfa20c207a6ecfedd224e5..7cd590cc2edfd5835d5ff8a2f9f4b76fbf7855e3 100644 --- a/GPL_LIB/Smarty/libs/plugins/function.fetch.php +++ b/GPL_LIB/Smarty/libs/plugins/function.fetch.php @@ -35,7 +35,7 @@ function smarty_function_fetch($params, &$smarty) $smarty->_trigger_fatal_error('[plugin] (secure mode) fetch \'' . $params['file'] . '\' is not allowed'); return; } - + // fetch the file if($fp = @fopen($params['file'],'r')) { while(!feof($fp)) { @@ -181,12 +181,12 @@ function smarty_function_fetch($params, &$smarty) $content .= fgets($fp,4096); } fclose($fp); - $cpreg_split = preg_split("\r\n\r\n",$content,2); + $csplit = split("\r\n\r\n",$content,2); - $content = $cpreg_split[1]; + $content = $csplit[1]; if(!empty($params['assign_headers'])) { - $smarty->assign($params['assign_headers'],preg_split("\r\n",$cpreg_split[0])); + $smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); } } } else {