Do not prefix href of select2 with unsafe to avoid #504
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -33,6 +33,9 @@ app.config(function ($provide, $interpolateProvider, $httpProvider, $urlRouterPr
|
|||||||
|
|
||||||
|
|
||||||
$compileProvider.debugInfoEnabled(true);
|
$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, {
|
markdownItConverterProvider.use(markdownitLinkTarget, {
|
||||||
breaks: true,
|
breaks: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user