Skip to content

Commit

Permalink
Merge pull request #387 from Vitorgus/fix_space_in_storage_path
Browse files Browse the repository at this point in the history
Storage paths can now have space characters
WolfgangSenff authored Mar 26, 2024
2 parents f44831f + 869c2a2 commit 62e0dad
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
@@ -334,7 +334,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.http_escape())


# Removes any "../" or "./" in the file path.

0 comments on commit 62e0dad

Please sign in to comment.