Explorar el Código

Local Server Folder List: fix ftp download URL creation

Felix Paul Kühne hace 12 años
padre
commit
77fd9eabf3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      AspenProject/VLCLocalServerFolderListViewController.m

+ 1 - 1
AspenProject/VLCLocalServerFolderListViewController.m

@@ -265,7 +265,7 @@
 
 - (void)_downloadFTPFile:(NSString *)fileName
 {
-    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
+    NSURL *URLToQueue = [NSURL URLWithString:[[@"ftp" stringByAppendingFormat:@"://%@%@/%@/%@", [self _credentials], _ftpServerAddress, _ftpServerPath, fileName] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
 
     [[(VLCAppDelegate*)[UIApplication sharedApplication].delegate downloadViewController] addURLToDownloadList:URLToQueue];
 }