From: Jean-Baptiste Lievremont Date: Mon, 27 Apr 2015 07:57:27 +0000 (+0200) Subject: Fix quality flaw X-Git-Tag: 5.2-RC1~2121 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=034963b2898a47e0be1c70bcfa2c5eb71ce85546;p=sonarqube.git Fix quality flaw --- diff --git a/server/sonar-web/src/main/js/application.js b/server/sonar-web/src/main/js/application.js index 4de2fefb40b..0e33e7b2d71 100644 --- a/server/sonar-web/src/main/js/application.js +++ b/server/sonar-web/src/main/js/application.js @@ -122,7 +122,7 @@ function dashboardParameters (urlHasSomething) { var matchPeriod = queryString.match(/period=\d+/); if (matchPeriod) { // If we have a match for period, check that it is not project-specific - var period = parseInt(/period=(\d+)/.exec(queryString)[1]); + var period = parseInt(/period=(\d+)/.exec(queryString)[1], 10); if (period <= 3) { parameters.push(matchPeriod[0]); }