com web/rmtools: Fix path name in upload_file_curl(): client/include/Tools.php
| From: | Stephen A. Zarkos | Date: | Mon, 04 Mar 2013 20:31:36 +0000 |
| Subject: | com web/rmtools: Fix path name in upload_file_curl(): client/include/Tools.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15635@lists.php.net to get a copy of this message | ||
Commit: 838dbab8c4b919c25f93a2cf5ee987b6aefb5f79
Author: Stephen Zarkos <stephen.zarkos@microsoft.com> Mon, 4 Mar 2013 12:31:36
-0800
Parents: 1a3747fd3ece3af1770534fd2165102c33a03dab
Branches: master
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=838dbab8c4b919c25f93a2cf5ee987b6aefb5f79
Log:
Fix path name in upload_file_curl()
Changed paths:
M client/include/Tools.php
Diff:
diff --git a/client/include/Tools.php b/client/include/Tools.php
index 765a339..f6605ec 100644
--- a/client/include/Tools.php
+++ b/client/include/Tools.php
@@ -131,8 +131,7 @@ function upload_file_curl($src, $target) // SAZ - Like upload_file(), but using
$ftp_user = $user_snaps;
$ftp_password = $password;
- $filename = basename($src);
- $remoteurl = "ftps://${ftp_user}:${ftp_password}@${ftp_server}/${target}/${filename}";
+ $remoteurl = "ftps://${ftp_user}:${ftp_password}@${ftp_server}/${target}";
$fp = fopen($src, "rb");
$ch = curl_init();