Skip to content

Commit

Permalink
Merge pull request #388 from Vitorgus/fix_space_in_storage_path_godot_4
Browse files Browse the repository at this point in the history
[Godot 4] Storage paths can now have space characters
  • Loading branch information
WolfgangSenff authored Mar 26, 2024
2 parents 226bdd5 + 9b43b87 commit b8e9328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/godot-firebase/storage/storage.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b8e9328

Please sign in to comment.