mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
[fix regression], $sce.getTrustedHtml removes all dangerous html like iframe (youtube players, ect), replaced by $sce.trustAsHtml which trust the content, it creates a security breach but all contents are created by users to we trust them
This commit is contained in:
parent
600c1369da
commit
93d6aeaf0f
@ -166,7 +166,7 @@ Application.Filters.filter('simpleText', [function () {
|
|||||||
}]);
|
}]);
|
||||||
|
|
||||||
Application.Filters.filter('toTrusted', ['$sce', function ($sce) {
|
Application.Filters.filter('toTrusted', ['$sce', function ($sce) {
|
||||||
return text => $sce.getTrustedHtml(text);
|
return text => $sce.trustAsHtml(text);
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
Application.Filters.filter('planIntervalFilter', [function () {
|
Application.Filters.filter('planIntervalFilter', [function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user