Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old regex pattern from CensoredFormatter #6705

Merged
merged 2 commits into from
May 20, 2019

Conversation

sharkykh
Copy link
Contributor

Newznab used to be a long string (NEWZNAB_DATA), and didn't have actual config sections, but that's changed now (#2970).
So now when newznab/torznab providers and loaded, the API key gets added to the censored items list.

The other reason for removing this is because the pattern isn't very accurate and can cause issues with logs.
For example, I noticed this with a log from tornado: https://regex101.com/r/09dy7L/3
You can see the different variations in which apikey is sometimes first, sometimes last, sometimes the only parameter,
And whatever is matched as "Group 2" (in red), will is replaced with asterisks (*)

@sharkykh sharkykh added Bug Changelog Requires a changelog entry labels May 20, 2019
@sharkykh sharkykh added this to the 0.3.2 milestone May 20, 2019
Newznab used to be a long string, and didn't have actual config sections, but that's changed now.
So now when newznab/torznab providers and loaded, the API key gets added to the censored items list.

The other reason for removing this is because the pattern isn't very accurate and can cause issues with logs (noticed this with a log from `tornado`)
@sharkykh sharkykh added Concluded and removed Changelog Requires a changelog entry labels May 20, 2019
@sharkykh sharkykh marked this pull request as ready for review May 20, 2019 18:12
@medariox medariox merged commit c1c55ac into develop May 20, 2019
@medariox medariox deleted the bugfix/censor-api-pattern branch May 20, 2019 20:57
Thilas pushed a commit to Thilas/Medusa that referenced this pull request Jun 5, 2019
* Remove old regex pattern from `CensoredFormatter`

Newznab used to be a long string, and didn't have actual config sections, but that's changed now.
So now when newznab/torznab providers and loaded, the API key gets added to the censored items list.

The other reason for removing this is because the pattern isn't very accurate and can cause issues with logs (noticed this with a log from `tornado`)

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants