Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-4949: UI Analysis page dropping characters from input box

Stefan Matheisbff085d5407f
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;