Skip to content

Commit

Permalink
Fixed link formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey committed Apr 13, 2016
1 parent 0855014 commit 8736e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/react/utils/markdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
try {
const unescaped = decodeURIComponent(unescape(href)).replace(/[^\w:]/g, '').toLowerCase();

if (unescaped.indexOf('javascript:') === 0 || unescaped.indexOf('vbscript:') === 0) { // eslint-disable-line no-script-url
if (unescaped.indexOf('javascript:') === 0 || unescaped.indexOf('vbscript:') === 0 || unescaped.indexOf('data:') === 0) { // eslint-disable-line no-script-url
return '';
}
} catch (e) {
Expand Down

0 comments on commit 8736e9d

Please sign in to comment.