Skip to content

Commit c70aead

Browse files
author
Agus Makmun
committed
fix: xss issue #167
1 parent 3ec0cc3 commit c70aead

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = "1.6.8"
3+
__VERSION__ = "1.6.9"
44
__AUTHOR__ = "Agus Makmun (Summon Agus)"
55
__AUTHOR_EMAIL__ = "summon.agus@gmail.com"

martor/static/martor/css/martor-admin.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.semantic.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.8
2+
* Name : Martor v1.6.9
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 21-Dec-2021
4+
* Release date : 11-Jan-2022
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.8
2+
* Name : Martor v1.6.9
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 21-Dec-2021
4+
* Release date : 11-Jan-2022
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.semantic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def markdownify(markdown_text):
3434
# Sanitize Markdown links
3535
# https://github.com/netbox-community/netbox/commit/5af2b3c2f577a01d177cb24cda1019551a2a4b64
3636
schemes = "|".join(ALLOWED_URL_SCHEMES)
37-
pattern = fr"\[(.+)\]\((?!({schemes})).*:(.+)\)"
37+
pattern = fr"\[(.+)\]\((?!({schemes})).*(:|;)(.+)\)"
3838
markdown_text = re.sub(
3939
pattern,
4040
"[\\1](\\3)",

0 commit comments

Comments
 (0)