cvs: smarty / NEWS /libs/plugins function.fetch.php
"Monte Ohrt" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmohrt1092949344@cvsserver> |
mohrt Thu Aug 19 17:02:24 2004 EDT
Modified files:
/smarty NEWS
/smarty/libs/plugins function.fetch.php
Log:
fix bug with fetch, passing user/pass in url did not work
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.466&r2=1.467&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.466 smarty/NEWS:1.467
--- smarty/NEWS:1.466 Thu Aug 12 17:07:24 2004
+++ smarty/NEWS Thu Aug 19 17:02:24 2004
@@ -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)
http://cvs.php.net/diff.php/smarty/libs/plugins/function.fetch.php?r1=1.17&r2=1.18&ty=u
Index: smarty/libs/plugins/function.fetch.php
diff -u smarty/libs/plugins/function.fetch.php:1.17 smarty/libs/plugins/function.fetch.php:1.18
--- smarty/libs/plugins/function.fetch.php:1.17 Tue Jun 1 12:46:43 2004
+++ smarty/libs/plugins/function.fetch.php Thu Aug 19 17:02:24 2004
@@ -64,8 +64,11 @@
} 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) {
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php