mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
fix bug with fetch, passing user/pass in url did not work
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- fix bug with fetch, passing user/pass in url did not work
|
||||
(Monte)
|
||||
- fix occasional wrong error messages on mismatched tags when
|
||||
{else}, {elseif}, {foreachelse} or {sectionelse} is involved (messju)
|
||||
- fix handling of methods arguments (messju, Manfred Wischin)
|
||||
|
@@ -64,8 +64,11 @@ function smarty_function_fetch($params, &$smarty)
|
||||
} else {
|
||||
$port = $uri_parts['port'];
|
||||
}
|
||||
if(empty($uri_parts['user'])) {
|
||||
$user = '';
|
||||
if(!empty($uri_parts['user'])) {
|
||||
$user = $uri_parts['user'];
|
||||
}
|
||||
if(!empty($uri_parts['pass'])) {
|
||||
$pass = $uri_parts['pass'];
|
||||
}
|
||||
// loop through parameters, setup headers
|
||||
foreach($params as $param_key => $param_value) {
|
||||
|
Reference in New Issue
Block a user