X-Git-Url: https://git.sur5r.net/?p=contagged;a=blobdiff_plain;f=inc%2Fsmarty%2Fplugins%2Ffunction.fetch.php;fp=inc%2Fsmarty%2Fplugins%2Ffunction.fetch.php;h=d72c7b1f9e832ea6f887fa083df2908aafe0222a;hp=81b1bfc6b9a03f916fcdb62209f6f458c5e712e5;hb=bedb277369f315e1298b14adecd8909323cf165f;hpb=6898c7085d4412426d487d950d6a8647fd4b6eb8 diff --git a/inc/smarty/plugins/function.fetch.php b/inc/smarty/plugins/function.fetch.php index 81b1bfc..d72c7b1 100644 --- a/inc/smarty/plugins/function.fetch.php +++ b/inc/smarty/plugins/function.fetch.php @@ -181,12 +181,12 @@ function smarty_function_fetch($params, &$smarty) $content .= fgets($fp,4096); } fclose($fp); - $csplit = split("\r\n\r\n",$content,2); + $csplit = preg_split("!\r\n\r\n!",$content,2); $content = $csplit[1]; if(!empty($params['assign_headers'])) { - $smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); + $smarty->assign($params['assign_headers'],preg_split("!\r\n!",$csplit[0])); } } } else {