lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steff...@apache.org
Subject svn commit: r1495829 - /lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js
Date Sun, 23 Jun 2013 15:25:46 GMT
Author: steffkes
Date: Sun Jun 23 15:25:46 2013
New Revision: 1495829

URL: http://svn.apache.org/r1495829
Log:
SOLR-4949: UI Analysis page dropping characters from input box

Modified:
    lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js

Modified: lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js?rev=1495829&r1=1495828&r2=1495829&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/scripts/analysis.js Sun Jun 23 15:25:46 2013
@@ -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;



Mime
View raw message