BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG
CHANGELOG
+1
-0
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