{{{
if re.search(r'%\([^\)]+\)', self.success_url):
}}}
replace with:
{{{
percent_placeholder = re.compile(r'%\([^\)]+\)')
...
def get_success_url():
if percent_placeholder.search(self.success_url):
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24221>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
Added PR https://github.com/django/django/pull/3990
--
Ticket URL: <https://code.djangoproject.com/ticket/24221#comment:1>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"ea0ea7859a224225950a4df7c23eb3a7d823ddcd"]:
{{{
#!CommitTicketReference repository=""
revision="ea0ea7859a224225950a4df7c23eb3a7d823ddcd"
Fixed #24221 - Used precompiled regexp for percent-placeholder matching.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24221#comment:2>
Comment (by Tim Graham <timograham@…>):
In [changeset:"2d990fb7fa6a04bb709aa9d7f687ec009c557c9e"]:
{{{
#!CommitTicketReference repository=""
revision="2d990fb7fa6a04bb709aa9d7f687ec009c557c9e"
[1.8.x] Fixed #24221 - Used precompiled regexp for percent-placeholder
matching.
Backport of ea0ea7859a224225950a4df7c23eb3a7d823ddcd from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24221#comment:3>