From bff085d5407f23d6d53b6761cfff1b3525f70d46 Mon Sep 17 00:00:00 2001 From: Stefan Matheis Date: Sun, 23 Jun 2013 15:25:46 +0000 Subject: [PATCH] SOLR-4949: UI Analysis page dropping characters from input box git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1495829 13f79535-47bb-0310-9956-ffa450edef68 --- solr/webapp/web/js/scripts/analysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/webapp/web/js/scripts/analysis.js b/solr/webapp/web/js/scripts/analysis.js index 9dc7ad39bb1..8aee1299be6 100644 --- a/solr/webapp/web/js/scripts/analysis.js +++ b/solr/webapp/web/js/scripts/analysis.js @@ -251,7 +251,7 @@ sammy.get .replace( /[\w\.]+=\+*(&)/g, '$1' ) // remove empty parameters .replace( /(&)+/, '$1' ) // reduce multiple ampersands .replace( /^&/, '' ) // remove leading ampersand - .replace( /\+/, '%20' ); // replace plus-signs with encoded whitespaces + .replace( /\+/g, '%20' ); // replace plus-signs with encoded whitespaces context.redirect( context.path.split( '?' ).shift() + '?' + params ); return false;