URL-encode query parameter values in APIClient._add_params
#20
Labels
No Label
ai-changes-requested
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
in-next-release
status/in-progress
status/pr-open
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-v2#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
api/client.py:101—_add_paramsbuilds query strings by simple string concatenation (f"{key}={value}"). Values are not passed throughurllib.parse.quote. Path segments (object_id) are correctly encoded withquote(). If any query parameter value contains&,=,#, or spaces (e.g., a player name), the resulting URL will be malformed. Fix: useurllib.parse.urlencode(params).File Locations
api/client.py:101Labels
bug, security
Priority
high
Addressed in commit
f4be20aonnext-releasebranch. Will be closed when merged to main.Addressed in commit
f4be20aonnext-releasebranch. Will be closed when merged to main.