fix query part of URL

This commit is contained in:
mohrt
2002-12-08 23:02:59 +00:00
parent 021676b5ba
commit 89f957ae5a
2 changed files with 4 additions and 10 deletions

View File

@@ -50,11 +50,8 @@ function smarty_function_fetch($params, &$smarty)
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
$agent = "Smarty Template Engine ".$smarty->_version;
$referer = "";
if(!empty($uri_parts['path'])) {
$uri = $uri_parts['path'];
} else {
$uri = '/';
}
$uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/';
$uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : '';
$_is_proxy = false;
if(empty($uri_parts['port'])) {
$port = 80;

View File

@@ -50,11 +50,8 @@ function smarty_function_fetch($params, &$smarty)
$accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
$agent = "Smarty Template Engine ".$smarty->_version;
$referer = "";
if(!empty($uri_parts['path'])) {
$uri = $uri_parts['path'];
} else {
$uri = '/';
}
$uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/';
$uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : '';
$_is_proxy = false;
if(empty($uri_parts['port'])) {
$port = 80;