Skip to content

Commit

Permalink
Merge pull request #509 from nextcloud/bugfix/504/fix-inline-javascri…
Browse files Browse the repository at this point in the history
…pt-error

Do not prefix href of select2 with unsafe to avoid #504
  • Loading branch information
juliusknorr authored Jun 28, 2018
2 parents 34d05f2 + dc5fbbf commit db619e4
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 db619e4

Please sign in to comment.