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

Regex defect in class StplParser where backslashes are not escaped in release 0.12.* #1177

Closed
ahendley opened this issue Nov 11, 2019 · 1 comment
Labels
Bug This issue is an actual confirmed bug that needs fixing

Comments

@ahendley
Copy link

ahendley commented Nov 11, 2019

Have on a number of occasions had to fix the constructed regex in the class StplParser so bottle will work.

Lines 3433 and 3434 are the culprits in this instances where the string has not been declared as a regex ( r'' ).

For each backslash I have had to update these with;

_re_tok += '|([\\[\\{\\(])'
_re_tok += '|([\\]\\}\\)])'
ahendley added a commit to ahendley/bottle that referenced this issue Nov 12, 2019
@defnull defnull added the Bug This issue is an actual confirmed bug that needs fixing label Dec 18, 2019
@defnull
Copy link
Member

defnull commented Dec 18, 2019

Should be fixed by now (0.12.18). Thanks

@defnull defnull closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue is an actual confirmed bug that needs fixing
Projects
None yet
Development

No branches or pull requests

2 participants