Index: Tools/GardeningServer/scripts/svn-log.js |
diff --git a/Tools/GardeningServer/scripts/svn-log.js b/Tools/GardeningServer/scripts/svn-log.js |
index 58d5128cb17e254dd4db4a3f68c30224c2ee8d28..cd53f288af89c50208e661fe0c32e4f45db73842 100644 |
--- a/Tools/GardeningServer/scripts/svn-log.js |
+++ b/Tools/GardeningServer/scripts/svn-log.js |
@@ -114,13 +114,25 @@ function parseCommitData(responseXML) |
return commits; |
} |
+trac._queryParam = function(params) |
+{ |
+ var result = [] |
+ Object.keys(params, function(key, value) { |
+ result.push(encodeURIComponent(key) + '=' + encodeURIComponent(value)); |
+ }); |
+ // FIXME: Remove the conversion of space to plus. This is just here |
+ // to remain compatible with jQuery.param, but there's no reason to |
+ // deviate from the built-in encodeURIComponent behavior. |
+ return result.join('&').replace(/%20/g, '+'); |
+} |
+ |
trac.changesetURL = function(revision) |
{ |
var queryParameters = { |
view: 'rev', |
revision: revision, |
}; |
- return config.kBlinkRevisionURL + '?' + base.queryParam(queryParameters); |
+ return config.kBlinkRevisionURL + '?' + trac._queryParam(queryParameters); |
}; |
trac.recentCommitData = function(path, limit) |