Skip to content

Conversation

@mitsuhiko
Copy link
Contributor

Turns out the old regex was malformed so we permitted nearly anything. This
does the same now again.

from sentry.utils.apidocs import scenario, attach_scenarios


BAD_RELEASE_CHARS = '\n\f\t/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is many other special chars like \r or \0, why not use proper regex allowing only the ones in ASCII range?

@mitsuhiko mitsuhiko merged commit 4f535f6 into master Mar 6, 2017
@mitsuhiko mitsuhiko deleted the bugfix/releases branch March 6, 2017 16:43
mattrobenolt pushed a commit that referenced this pull request Mar 6, 2017
Permit almost anything for releases again
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants