mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
update fetch function
This commit is contained in:
@@ -49,7 +49,7 @@ function smarty_function_fetch($params, &$smarty)
|
||||
$timeout = 30;
|
||||
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
|
||||
$agent = "Smarty Template Engine ".$smarty->_version;
|
||||
$referer = $_SERVER['REFERER'];
|
||||
$referer = "";
|
||||
if(!empty($uri_parts['path'])) {
|
||||
$uri = $uri_parts['path'];
|
||||
} else {
|
||||
|
@@ -49,7 +49,7 @@ function smarty_function_fetch($params, &$smarty)
|
||||
$timeout = 30;
|
||||
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
|
||||
$agent = "Smarty Template Engine ".$smarty->_version;
|
||||
$referer = $_SERVER['REFERER'];
|
||||
$referer = "";
|
||||
if(!empty($uri_parts['path'])) {
|
||||
$uri = $uri_parts['path'];
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user