mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
fix query part of URL
This commit is contained in:
@@ -50,11 +50,8 @@ function smarty_function_fetch($params, &$smarty)
|
|||||||
$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 = "";
|
$referer = "";
|
||||||
if(!empty($uri_parts['path'])) {
|
$uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/';
|
||||||
$uri = $uri_parts['path'];
|
$uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : '';
|
||||||
} else {
|
|
||||||
$uri = '/';
|
|
||||||
}
|
|
||||||
$_is_proxy = false;
|
$_is_proxy = false;
|
||||||
if(empty($uri_parts['port'])) {
|
if(empty($uri_parts['port'])) {
|
||||||
$port = 80;
|
$port = 80;
|
||||||
|
@@ -50,11 +50,8 @@ function smarty_function_fetch($params, &$smarty)
|
|||||||
$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 = "";
|
$referer = "";
|
||||||
if(!empty($uri_parts['path'])) {
|
$uri = !empty($uri_parts['path']) ? $uri_parts['path'] : '/';
|
||||||
$uri = $uri_parts['path'];
|
$uri .= !empty($uri_parts['query']) ? '?' . $uri_parts['query'] : '';
|
||||||
} else {
|
|
||||||
$uri = '/';
|
|
||||||
}
|
|
||||||
$_is_proxy = false;
|
$_is_proxy = false;
|
||||||
if(empty($uri_parts['port'])) {
|
if(empty($uri_parts['port'])) {
|
||||||
$port = 80;
|
$port = 80;
|
||||||
|
Reference in New Issue
Block a user