Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
cc29ce49
Commit
cc29ce49
authored
Mar 21, 2015
by
Vinnie Okada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow style attributes in inline HTML
parent
52bf95ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG
CHANGELOG
+1
-0
lib/gitlab/markdown.rb
lib/gitlab/markdown.rb
+1
-1
No files found.
CHANGELOG
View file @
cc29ce49
Please view this file on the master branch, on stable branches it's out of date.
v 7.10.0 (unreleased)
- Allow HTML tags in Markdown input
v 7.9.0 (unreleased)
- Add HipChat integration documentation (Stan Hu)
...
...
lib/gitlab/markdown.rb
View file @
cc29ce49
...
...
@@ -88,7 +88,7 @@ module Gitlab
]
whitelist
=
HTML
::
Pipeline
::
SanitizationFilter
::
WHITELIST
whitelist
[
:attributes
][
:all
].
push
(
'class'
,
'id'
,
'style'
)
whitelist
[
:attributes
][
:all
].
push
(
'class'
,
'id'
)
# Remove the rel attribute that the sanitize gem adds, and remove the
# href attribute if it contains inline javascript
...
...
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