diff options
| author | SaJH <wogur981208@gmail.com> | 2025-08-27 23:25:43 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-08-28 08:54:56 +0200 |
| commit | a9fe98d5bd4212d069afe8316101984aadecfbb2 (patch) | |
| tree | 9ec270af941dd2c2ec6824d3efeedd7c06a267f8 /tests/template_tests | |
| parent | 05bac8c4202aba77dcb109aeedd35ff563331e1a (diff) | |
Fixed #35533 -- Prevented urlize creating broken links given a markdown link input.
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/filter_tests/test_urlize.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/template_tests/filter_tests/test_urlize.py b/tests/template_tests/filter_tests/test_urlize.py index ca9f8fb7e1..692c3fc830 100644 --- a/tests/template_tests/filter_tests/test_urlize.py +++ b/tests/template_tests/filter_tests/test_urlize.py @@ -359,9 +359,8 @@ class FunctionTests(SimpleTestCase): "www.example.com</a>]", ) self.assertEqual( - urlize("see test[at[example.com"), - 'see <a href="https://test[at[example.com" rel="nofollow">' - "test[at[example.com</a>", + urlize("see test[at[example.com"), # Invalid hostname. + "see test[at[example.com", ) self.assertEqual( urlize("[http://168.192.0.1](http://168.192.0.1)"), |
