From 46d104a932e63652b086c511b80c02fefe6f4203 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Tue, 15 Nov 2016 08:51:38 +0100 Subject: [PATCH] SONAR-8313 Sanitize description of filter parameter in WS api/components/search_projects --- .../org/sonar/server/component/ws/SearchProjectsAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java b/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java index e717c4db62e..4322d6a082f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java @@ -87,7 +87,7 @@ public class SearchProjectsAction implements ComponentsWsAction { .setPossibleValues(SUPPORTED_FACETS); action .createParam(PARAM_FILTER) - .setDescription("Filter projects on measure value, quality gate or whether a project is a favorite or not.
" + + .setDescription("Filter of projects on measure value, quality gate or whether a project is a favorite or not.
" + "The filter must be encoded to form a valid URL (for example '=' must be replaced by '%3D').
" + "Examples of use:" + "" + - "To filter on a Quality Gate status use the metric key 'alert_status'. You can only use the '=' operator.
" + + "To filter on a Quality Gate status use the metric key 'alert_status'. Only the '=' operator can be used.
" + "The possible values are:" + "