trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1442193 - /trafficserver/site/trunk/content/tools/via.html
Date Mon, 04 Feb 2013 17:29:58 GMT
Author: humbedooh
Date: Mon Feb  4 17:29:58 2013
New Revision: 1442193

URL: http://svn.apache.org/viewvc?rev=1442193&view=rev
Log:
convert %20 and + to spaces

Modified:
    trafficserver/site/trunk/content/tools/via.html

Modified: trafficserver/site/trunk/content/tools/via.html
URL: http://svn.apache.org/viewvc/trafficserver/site/trunk/content/tools/via.html?rev=1442193&r1=1442192&r2=1442193&view=diff
==============================================================================
--- trafficserver/site/trunk/content/tools/via.html (original)
+++ trafficserver/site/trunk/content/tools/via.html Mon Feb  4 17:29:58 2013
@@ -142,7 +142,7 @@ function showVia(form, value) {
 function checkQuery() {
     var url = location.href;
     if (url.indexOf("#") > 0) {
-        var qs = url.substring(url.indexOf("#")+1);
+        var qs = url.substring(url.indexOf("#")+1).replace("%20", " ").replace("+", " ");
         if (qs && qs.length > 5) {
             showVia(false, qs);
         }



Mime
View raw message