diff --git a/0006-1177-Bug-fix-of-missing-regex-escaped-back-slashes.patch b/0006-1177-Bug-fix-of-missing-regex-escaped-back-slashes.patch new file mode 100644 index 0000000000000000000000000000000000000000..294cda4c8b006f990ab69c5de8e853ff9da4ceb5 --- /dev/null +++ b/0006-1177-Bug-fix-of-missing-regex-escaped-back-slashes.patch @@ -0,0 +1,27 @@ +From 099c4a2e8bb1e6e2c42056c6aef004024fbd8c7c Mon Sep 17 00:00:00 2001 +From: Andrew Hendley +Date: Tue, 12 Nov 2019 15:25:18 +1100 +Subject: [PATCH] #1177 Bug fix of missing regex escaped back slashes + +--- + bottle.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/bottle.py b/bottle.py +index 910b747..9850abb 100644 +--- a/bottle.py ++++ b/bottle.py +@@ -3430,8 +3430,8 @@ class StplParser(object): + # 2: Comments (until end of line, but not the newline itself) + _re_tok += '|(#.*)' + # 3,4: Open and close grouping tokens +- _re_tok += '|([\[\{\(])' +- _re_tok += '|([\]\}\)])' ++ _re_tok += '|([\\[\\{\\(])' ++ _re_tok += '|([\\]\\}\\)])' + # 5,6: Keywords that start or continue a python block (only start of line) + _re_tok += '|^([ \\t]*(?:if|for|while|with|try|def|class)\\b)' \ + '|^([ \\t]*(?:elif|else|except|finally)\\b)' +-- +2.39.0.windows.2 + diff --git a/python-bottle.spec b/python-bottle.spec index 1e5ddf6e25507b7d27bda9c4237fc7bb9e799def..453cc00ccc4fbe7e369ed8092d614d1025536104 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -1,6 +1,6 @@ Name: python-bottle Version: 0.12.13 -Release: 14 +Release: 15 Summary: WSGI micro web-framework for Python. License: MIT URL: http://bottlepy.org @@ -13,6 +13,7 @@ Patch0003: 0002-Fix-930-DeprecationWarning-Flags-not-at-the-start-of.patch Patch0004: 0003-Added-Python-3.4-3.7-language-classifiers.patch Patch0005: 0004-fix-1115-Some-modules-set-__file__-as-None.patch Patch0006: 0005-fix-1148-redirect-and-non-ascii-characters.patch +Patch0007: 0006-1177-Bug-fix-of-missing-regex-escaped-back-slashes.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools @@ -67,6 +68,9 @@ sed -i '/^#!/d' bottle.py %{python3_sitelib}/* %changelog +* Tue Dec 26 2023 zhangliangpengkun - 0.12.13-15 +- Bug fix of missing regex escaped back slashes + * Wed Dec 20 2023 zhangliangpengkun - 0.12.13-14 - fix #1148: redirect() and non-ascii characters