You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix infinite loop in redact_api_key when string has multiple api_key params
After replacing a value with [REDACTED], the search offset must advance
past the replacement. Without this, out.find("api_key=") re-finds the
same position on every iteration and loops forever.
Also adds five unit tests covering: no-op, single, multiple occurrences,
end-of-string, and already-redacted inputs.
0 commit comments