mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
SVG/JS monitoring bug rectified.
This commit is contained in:
parent
b4ea49e2e7
commit
9decf2cb93
2 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ __copyright__ = 'Copyright 2017'
|
|||
__license__ = 'BSD'
|
||||
__maintainer__ = 'Adi, Pouria Hadjibagheri'
|
||||
__url__ = 'https://github.com/neutronX/django-markdownx'
|
||||
__version__ = '2.0.12'
|
||||
__version__ = '2.0.13'
|
||||
__description__ = 'A comprehensive Markdown editor built for Django.'
|
||||
# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class ImageForm(forms.Form):
|
|||
expected=MARKDOWNX_UPLOAD_MAX_SIZE
|
||||
)
|
||||
|
||||
elif (content_type.lower() != self._SVG_TYPE
|
||||
elif (content_type.lower() == self._SVG_TYPE
|
||||
and MARKDOWNX_SVG_JAVASCRIPT_PROTECTION
|
||||
and xml_has_javascript(upload.read())):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue