* (bug 7766) Remove redundant / from AJAX requests, can break some servers

This commit is contained in:
Brion Vibber 2006-10-31 13:27:57 +00:00
parent ac28d6f10a
commit ada13258ea
3 changed files with 4 additions and 2 deletions

View file

@ -110,6 +110,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
styling (class="mw-templatesUsedExplanation").
* Added {{#special:}} parser function, to give the local default title for
special pages
* (bug 7766) Remove redundant / from AJAX requests, can break some servers
== Languages updated ==

View file

@ -1037,7 +1037,7 @@ $wgCacheEpoch = '20030516000000';
* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
$wgStyleVersion = '22';
$wgStyleVersion = '23';
# Server-side caching:

View file

@ -75,7 +75,7 @@ function sajax_do_call(func_name, args, target) {
var i, x, n;
var uri;
var post_data;
uri = wgServer + "/" + wgScriptPath + "/index.php?action=ajax";
uri = wgServer + wgScriptPath + "/index.php?action=ajax";
if (sajax_request_type == "GET") {
if (uri.indexOf("?") == -1)
uri = uri + "?rs=" + encodeURIComponent(func_name);