Commit:    838dbab8c4b919c25f93a2cf5ee987b6aefb5f79
Author:    Stephen Zarkos <[email protected]>         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();


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to