Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
7cc4d9ff
Commit
7cc4d9ff
authored
Nov 27, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack: do not force safe html
parent
0e2352aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Document/TextDocument.py
product/ERP5/Document/TextDocument.py
+2
-2
No files found.
product/ERP5/Document/TextDocument.py
View file @
7cc4d9ff
...
...
@@ -155,8 +155,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
if
not
self
.
hasConversion
(
**
kw
):
portal_transforms
=
portal
.
portal_transforms
filename
=
self
.
getFilename
()
if
mime_type
==
'text/html'
:
mime_type
=
'text/x-html-safe'
#
if mime_type == 'text/html':
#
mime_type = 'text/x-html-safe'
if
src_mimetype
!=
"image/svg+xml"
:
result
=
portal_transforms
.
convertToData
(
mime_type
,
text_content
,
object
=
self
,
context
=
self
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment