From 52790f9eeaa23ff0100d1a043a83ae4c7e3c1b7d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 23 May 2012 13:35:51 +0000 Subject: [PATCH] correctly encodeURIComponent parameters git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341861 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/search.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index f63808b2e..6c34a8ff3 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -308,7 +308,7 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock entriesUrl+="/"+encodeURIComponent(self.artifactId)+"/"+encodeURIComponent(self.version); entriesUrl+="?repositoryId="+encodeURIComponent(getSelectedBrowsingRepository()); if(classifier){ - entriesUrl+="&c="+classifier; + entriesUrl+="&c="+encodeURIComponent(classifier); } $("#main-content #artifact_content_tree").fileTree({ script: entriesUrl, @@ -319,12 +319,12 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock fileContentUrl+="/"+encodeURIComponent(self.artifactId)+"/"+encodeURIComponent(self.version); fileContentUrl+="?repositoryId="+encodeURIComponent(getSelectedBrowsingRepository()); if(type){ - fileContentUrl+="&t="+type; + fileContentUrl+="&t="+encodeURIComponent(type); } if(classifier){ - fileContentUrl+="&c="+classifier; + fileContentUrl+="&c="+encodeURIComponent(classifier); } - fileContentUrl+="&p="+file.substringBeforeLast("/"); + fileContentUrl+="&p="+encodeURIComponent(file.substringBeforeLast("/")); $.ajax({ url: fileContentUrl, dataType: "text", -- 2.39.5