Skip to content

Commit

Permalink
Do not prefix href of select2 with unsafe to avoid #504
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 28, 2018
1 parent bfe7190 commit dc5fbbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/app/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ app.config(function ($provide, $interpolateProvider, $httpProvider, $urlRouterPr


$compileProvider.debugInfoEnabled(true);
// This should fix adding "unsafe:" prefix to ui-select href links containing javascript
// inline JS is blocked by CSP anyway and filtered out by our markdown renderer as well
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|javascript):/);

markdownItConverterProvider.use(markdownitLinkTarget, {
breaks: true,
Expand Down

0 comments on commit dc5fbbf

Please sign in to comment.