update fetch function

This commit is contained in:
mohrt
2002-03-13 23:30:56 +00:00
parent 0384c2cfdb
commit b32fc83b26
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ function smarty_function_fetch($params, &$smarty)
$timeout = 30; $timeout = 30;
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"; $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
$agent = "Smarty Template Engine ".$smarty->_version; $agent = "Smarty Template Engine ".$smarty->_version;
$referer = $_SERVER['REFERER']; $referer = "";
if(!empty($uri_parts['path'])) { if(!empty($uri_parts['path'])) {
$uri = $uri_parts['path']; $uri = $uri_parts['path'];
} else { } else {

View File

@@ -49,7 +49,7 @@ function smarty_function_fetch($params, &$smarty)
$timeout = 30; $timeout = 30;
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*"; $accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
$agent = "Smarty Template Engine ".$smarty->_version; $agent = "Smarty Template Engine ".$smarty->_version;
$referer = $_SERVER['REFERER']; $referer = "";
if(!empty($uri_parts['path'])) { if(!empty($uri_parts['path'])) {
$uri = $uri_parts['path']; $uri = $uri_parts['path'];
} else { } else {