From 9b43b87c77cea838135c5ac8d91193c18d3f5fbe Mon Sep 17 00:00:00 2001 From: Vitor Augusto Pinheiro <26413854+Vitorgus@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:01:32 -0300 Subject: [PATCH] fix: storage path now accepts space characters --- addons/godot-firebase/storage/storage.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/godot-firebase/storage/storage.gd b/addons/godot-firebase/storage/storage.gd index 1b4b93e..a4307c0 100644 --- a/addons/godot-firebase/storage/storage.gd +++ b/addons/godot-firebase/storage/storage.gd @@ -325,7 +325,7 @@ func _finish_request(result : int) -> void: func _get_file_url(ref : StorageReference) -> String: var url := _extended_url.replace("[APP_ID]", ref.bucket) url = url.replace("[API_VERSION]", _API_VERSION) - return url.replace("[FILE_PATH]", ref.full_path.replace("/", "%2F")) + return url.replace("[FILE_PATH]", ref.full_path.uri_encode()) # Removes any "../" or "./" in the file path. func _simplify_path(path : String) -> String: