Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34170 -- Implemented Heal The Breach (HTB) in GzipMiddleware. | Andreas Pelme | 2022-12-17 | 1 | -4/+24 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -53/+95 |
| | |||||
* | Refs #27753 -- Removed unused django.utils.text._replace_entity() and ↵ | Mariusz Felisiak | 2021-12-30 | 1 | -23/+0 |
| | | | | | _entity_re. Unused since 157ab32f3446da7fa1f9d716509c290069a2a156. | ||||
* | Fixed unescape_string_literal() crash on empty strings. | Florian Apolloner | 2021-12-14 | 1 | -1/+1 |
| | |||||
* | Fixed #32859 -- Simplified compress_string() by using gzip.compress(). | Illia Volochii | 2021-06-21 | 1 | -7/+2 |
| | |||||
* | Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads. | Florian Apolloner | 2021-05-04 | 1 | -3/+7 |
| | |||||
* | Optimized django.utils.text.capfirst(). | Nick Pope | 2021-03-23 | 1 | -1/+5 |
| | | | Unconditionally coercing to str type twice is expensive. | ||||
* | Refs #27753 -- Removed django.utils.text.unescape_entities() per deprecation ↵ | Mariusz Felisiak | 2021-01-14 | 1 | -12/+0 |
| | | | | timeline. | ||||
* | Fixed #28694 -- Made django.utils.text.slugify() strip dashes and underscores. | David Smith | 2020-05-29 | 1 | -3/+3 |
| | |||||
* | Corrected slugify()'s docstring. | David Smith | 2020-05-29 | 1 | -3/+4 |
| | |||||
* | Refs #30116 -- Simplified regex match group access with Match.__getitem__(). | Jon Dufresne | 2020-05-11 | 1 | -6/+6 |
| | | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster. | ||||
* | Fixed #30892 -- Fixed slugify() and admin's URLify.js for "İ". | Sjbrgsn | 2019-12-30 | 1 | -1/+1 |
| | | | | | | Thanks Luis Nell for the implementation idea and very detailed report. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #30899 -- Lazily compiled import time regular expressions. | Hasan Ramezani | 2019-10-29 | 1 | -7/+8 |
| | |||||
* | Removed unneeded ValueError catching in django.utils.text._replace_entity(). | Jon Dufresne | 2019-08-01 | 1 | -1/+1 |
| | | | | | The html.entities.name2codepoint dict contains only valid Unicode codepoints. Either the key exists and chr() will succeed or the key does not exist. | ||||
* | Fixed CVE-2019-14232 -- Adjusted regex to avoid backtracking issues when ↵ | Florian Apolloner | 2019-08-01 | 1 | -2/+2 |
| | | | | | | truncating HTML. Thanks to Guido Vranken for initial report. | ||||
* | Refs #27753 -- Deprecated django.utils.text.unescape_entities(). | Jon Dufresne | 2019-05-08 | 1 | -0/+7 |
| | | | | | | | The function was undocumented and only required for compatibility with Python 2. Code should use Python's html.unescape() that was added in Python 3.4. | ||||
* | Simplified utils.text.StreamingBuffer. | Sergey Fedoseev | 2018-10-04 | 1 | -17/+4 |
| | |||||
* | Normalized spelling of "lowercase" and "lowercased". | Jon Dufresne | 2018-09-25 | 1 | -1/+1 |
| | |||||
* | Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵ | Claude Paroz | 2018-08-21 | 1 | -4/+3 |
| | | | | | | dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review. | ||||
* | Fixed #29412 -- Stopped marking slugify() result as HTML safe. | Claude Paroz | 2018-07-20 | 1 | -6/+3 |
| | |||||
* | Fixed CVE-2018-7537 -- Fixed catastrophic backtracking in ↵ | Tim Graham | 2018-03-06 | 1 | -1/+1 |
| | | | | | | django.utils.text.Truncator. Thanks James Davis for suggesting the fix. | ||||
* | Fixed #28860 -- Removed unnecessary len() calls. | Дилян Палаузов | 2017-12-04 | 1 | -1/+1 |
| | |||||
* | Refs #27795 -- Replaced many force_text() with str() | Claude Paroz | 2017-04-27 | 1 | -13/+10 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Removed duplicate lines in slugify(). | Jon Dufresne | 2017-04-10 | 1 | -3/+2 |
| | |||||
* | Refs #27795 -- Removed unneeded force_text calls | Claude Paroz | 2017-03-04 | 1 | -3/+0 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #27656 -- Updated django.utils docstring verbs according to PEP 257. | Anton Samarchyan | 2017-02-11 | 1 | -25/+22 |
| | |||||
* | Converted usage of ugettext* functions to their gettext* aliases | Claude Paroz | 2017-02-07 | 1 | -2/+2 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919, #27778 -- Removed obsolete mentions of unicode. | Vytis Banaitis | 2017-01-26 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed re.U and re.UNICODE (default on Python 3). | Mariusz Felisiak | 2017-01-21 | 1 | -4/+4 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 1 | -1/+1 |
| | |||||
* | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | 2017-01-18 | 1 | -4/+3 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | 2017-01-18 | 1 | -2/+2 |
| | | | | Thanks Tim Graham and Simon Charette for the reviews. | ||||
* | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | 2017-01-18 | 1 | -5/+0 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 1 | -2/+0 |
| | |||||
* | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | 2016-11-14 | 1 | -0/+3 |
| | |||||
* | Decorated a few functions. | Tim Graham | 2016-11-14 | 1 | -2/+3 |
| | |||||
* | Refs #19705 -- Changed gzip modification times to 0. | Kevin Christopher Henry | 2016-10-14 | 1 | -2/+2 |
| | | | | | This makes gzip output deterministic, which allows ConditionalGetMiddleware to reliably compare ETags on gzipped content (views using the gzip_page() decorator in particular). | ||||
* | Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. | Tim Graham | 2016-09-17 | 1 | -4/+4 |
| | | | | http://bugs.python.org/issue27364 | ||||
* | Fixed #26866 -- Added format_lazy function | Mattias Loverot | 2016-08-24 | 1 | -1/+12 |
| | | | | | Added format_lazy function to django.utils.text module. Useful when dealing with relative complex lazy string concatenations (e.g. in urls.py when translating urls in regular expressions). | ||||
* | Fixed #27020 -- Used a context manager to close files. | Ville Skyttä | 2016-08-04 | 1 | -12/+10 |
| | |||||
* | Fixed E128 flake8 warnings in django/. | Tim Graham | 2016-04-08 | 1 | -4/+6 |
| | |||||
* | Fixed #26125 -- Fixed E731 flake warnings. | userimack | 2016-01-25 | 1 | -1/+2 |
| | |||||
* | Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy(). | Iacopo Spalletti | 2015-12-12 | 1 | -13/+13 |
| | | | | Thanks to bmispelon and uruz for the initial patch. | ||||
* | Fixed #16501 -- Added an allow_unicode parameter to SlugField. | Edward Henderson | 2015-07-17 | 1 | -4/+8 |
| | | | | Thanks Flavio Curella and Berker Peksag for the initial patch. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 1 | -4/+4 |
| | |||||
* | Fixed #24242 -- Improved efficiency of utils.text.compress_sequence() | Matthew Somerville | 2015-02-04 | 1 | -2/+5 |
| | | | | | | | | | The function no longer flushes zfile after each write as doing so can lead to the gzipped streamed content being larger than the original content; each flush adds a 5/6 byte type 0 block. Removing this means buf.read() may return nothing, so only yield if that has some data. Testing shows without the flush() the buffer is being flushed every 17k or so and compresses the same as if it had been done as a whole string. | ||||
* | Removed utils.text.javascript_quote() per deprecation timeline; refs #21725. | Tim Graham | 2015-01-17 | 1 | -29/+0 |
| | |||||
* | Fixed #23558 -- documented slugify limitations | David Hoffman | 2014-10-30 | 1 | -3/+3 |
| | |||||
* | Fixed #20221 -- Allowed some functions that use mark_safe() to result in ↵ | Jon Dufresne | 2014-10-20 | 1 | -2/+3 |
| | | | | | | SafeText. Thanks Baptiste Mispelon for the report. |