cvs: smarty /libs/plugins function.fetch.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1086108403@cvsserver> |
messju Tue Jun 1 12:46:43 2004 EDT
Modified files:
/smarty/libs/plugins function.fetch.php
Log:
fix: proper initialistaion of $content.
thanks to Dmitry Koteroff for pointing this out.
http://cvs.php.net/diff.php/smarty/libs/plugins/function.fetch.php?r1=1.16&r2=1.17&ty=u
Index: smarty/libs/plugins/function.fetch.php
diff -u smarty/libs/plugins/function.fetch.php:1.16 smarty/libs/plugins/function.fetch.php:1.17
--- smarty/libs/plugins/function.fetch.php:1.16 Fri Dec 19 12:18:56 2003
+++ smarty/libs/plugins/function.fetch.php Tue Jun 1 12:46:43 2004
@@ -26,6 +26,7 @@
return;
}
+ $content = '';
if ($smarty->security && !preg_match('!^(http|ftp)://!i', $params['file'])) {
$_params = array('resource_type' => 'file', 'resource_name' => $params['file']);
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php');
@@ -171,7 +172,6 @@
fputs($fp, "Authorization: BASIC ".base64_encode("$user:$pass")."\r\n");
}
- $content = '';
fputs($fp, "\r\n");
while(!feof($fp)) {
$content .= fgets($fp,4096);
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php