Skip to content

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

@ahendley

Description

@ahendley

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 += '|([\\]\\}\\)])'

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis issue is an actual confirmed bug that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions