diff --git a/infoscreen/static/infoscreen/html/sosso.html b/infoscreen/static/infoscreen/html/sosso.html index 5325d06..0bd79ba 100644 --- a/infoscreen/static/infoscreen/html/sosso.html +++ b/infoscreen/static/infoscreen/html/sosso.html @@ -1,7 +1,8 @@ +
@@ -10,8 +11,8 @@

-
- {{ post.title }} +

diff --git a/infoscreen/static/infoscreen/js/infoscreen_controllers.js b/infoscreen/static/infoscreen/js/infoscreen_controllers.js index 543ed65..739fcfd 100644 --- a/infoscreen/static/infoscreen/js/infoscreen_controllers.js +++ b/infoscreen/static/infoscreen/js/infoscreen_controllers.js @@ -46,6 +46,13 @@ app.filter('trusted_url', ['$sce', function ($sce) { }; }]); +//Used for special characters in Sosso. This may open up XSS, so we need to trust that sosso.fi doesn't get compromised... +app.filter('unsafe', function($sce) { + return function(val) { + return $sce.trustAsHtml(val); + }; +}); + app.controller('ABBController', function($scope, $http){ $scope.jobs = []; var min_date = moment().subtract(30,'days').format("YYYY-MM-DD%20HH:mm:ss");