Skip to content
Extraits de code Groupes Projets
Valider b09be690 rédigé par Thomas Steur's avatar Thomas Steur Validation de sgiehl
Parcourir les fichiers

added changelog entry, encode some params just to be sure to prevent xss

parent 9ba8f216
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -11,6 +11,7 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API'
* The method `Piwik\Plugin\Menu::configureReportingMenu` has been removed. To add something to the reporting menu you need to create widgets
* The method `Report::configureWidget()`, `Report::getWidgetTitle()` and `Report::configureReportingMenu()` have been removed, use the new method `Report::configureWidgets()` instead.
* The method `Report::getCategory()` does no longer return the translated category but the translation key of the category
* The property `Report::$category` has been renamed to `Report::$categoryId`
* The methods `Report::factory()`, `Report::getAllReportClasses()`, `Report::getAllReports` have been moved to the `Piwik\Plugin\Reports` class.
* The properties `Report::$widgetTitle`, `Report::$widgetParams` and `Report::$menuTitle` were removed, use the method `Report::configureWidgets()` to create widgets instead
* In the HTTP API methods `Dashboard.getDefaultDashboard` and `Dashboard.getUserDashboards` we do no longer remove not existing widgets as it is up to the client which widgets actually exist
......
......@@ -86,7 +86,13 @@
var segment = getUrlParam('segment');
$scope.makeUrl = function (category, subcategory) {
var url = 'idSite=' + idSite + '&period=' + period + '&date=' + date + '&category=' + category.id + '&subcategory=' + subcategory.id;
var url = 'idSite=' + encodeURIComponent(idSite);
url += '&period=' + encodeURIComponent(period);
url += '&date=' + encodeURIComponent(date);
url += '&category=' + encodeURIComponent(category.id);
url += '&subcategory=' + encodeURIComponent(subcategory.id);
if (segment) {
url+= '&segment='+ segment;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter