gitlab-org--gitlab-foss/lib/gitlab/markdown
Douwe Maan 329e067ff1 Merge branch 'rs-dev-issue-2613' into 'master'
Add custom protocol whitelisting to SanitizationFilter

Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2613

We allow any protocol for autolinks: irc://irc.freenode.net/git

But manual Markdown links with the same protocol get sanitized: `[This will not be clickable](irc://irc.freenode.net/git)`: [This will not be clickable](irc://irc.freenode.net/git)

To get around this we have to first allow *all* protocols, and then manually clean dangerous (i.e., `javascript:`) protocols.

See merge request !1496
2015-11-02 10:49:46 +00:00
..
autolink_filter.rb Make sure the main Gitlab::Markdown module gets loaded before filters 2015-08-27 16:02:49 -07:00
commit_range_reference_filter.rb Refactor reference gathering to use a dedicated filter 2015-10-07 17:00:48 +02:00
commit_reference_filter.rb Refactor reference gathering to use a dedicated filter 2015-10-07 17:00:48 +02:00
cross_project_reference.rb Remove all permission checking from Reference filters 2015-09-01 16:58:38 -04:00
emoji_filter.rb Make sure the main Gitlab::Markdown module gets loaded before filters 2015-08-27 16:02:49 -07:00
external_issue_reference_filter.rb Refactor reference gathering to use a dedicated filter 2015-10-07 17:00:48 +02:00
external_link_filter.rb Make sure the main Gitlab::Markdown module gets loaded before filters 2015-08-27 16:02:49 -07:00
issue_reference_filter.rb Efficiently load multiple references of one type. 2015-10-13 18:23:49 +02:00
label_reference_filter.rb Efficiently load multiple references of one type. 2015-10-13 18:23:49 +02:00
merge_request_reference_filter.rb Efficiently load multiple references of one type. 2015-10-13 18:23:49 +02:00
redactor_filter.rb Always allow references to the current project 2015-10-07 19:19:23 +02:00
reference_filter.rb Speed up searching for text references a bit 2015-10-20 15:52:40 +02:00
reference_gatherer_filter.rb Explicitly only parse references by specified filter 2015-10-14 09:46:06 +02:00
relative_link_filter.rb Allow RelativeLinkFilter to go up multiple directories 2015-09-20 19:21:33 -04:00
sanitization_filter.rb Add custom protocol whitelisting to SanitizationFilter 2015-10-01 23:40:29 -04:00
snippet_reference_filter.rb Efficiently load multiple references of one type. 2015-10-13 18:23:49 +02:00
syntax_highlight_filter.rb Add comments and clean up test for !1274 2015-09-10 14:24:10 -07:00
table_of_contents_filter.rb Make sure the main Gitlab::Markdown module gets loaded before filters 2015-08-27 16:02:49 -07:00
task_list_filter.rb Make sure the main Gitlab::Markdown module gets loaded before filters 2015-08-27 16:02:49 -07:00
upload_link_filter.rb Fix: Images cannot show when projects' path was changed 2015-10-14 18:50:35 +03:00
user_reference_filter.rb Efficiently load multiple references of one type. 2015-10-13 18:23:49 +02:00