mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Fix remote path from url with usernames containing spaces
This commit is contained in:
		
							parent
							
								
									e1b09a5ff5
								
							
						
					
					
						commit
						f09c851210
					
				| @ -228,9 +228,9 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
| 
 | ||||
| 
 | ||||
|     private static String getRemotePathFromUrl(HttpUrl url, String userId) { | ||||
|         final String davPath = WEBDAV_FILES_PATH_4_0 + userId; | ||||
|         final String davPath = WEBDAV_FILES_PATH_4_0 + Uri.encode(userId); | ||||
|         final String pathToOc = url.encodedPath().split(davPath)[0]; | ||||
|         return Uri.decode(url.encodedPath()).replace(pathToOc + davPath, ""); | ||||
|         return Uri.decode(url.encodedPath().replace(pathToOc + davPath, "")); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user