From ada13258ea435ebbbbc07349c491b88d098954db Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 31 Oct 2006 13:27:57 +0000 Subject: [PATCH] * (bug 7766) Remove redundant / from AJAX requests, can break some servers --- RELEASE-NOTES | 2 ++ includes/DefaultSettings.php | 2 +- skins/common/ajax.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index af2ff62a0e..19355f435f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 97bf331b8c..000344f09d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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: diff --git a/skins/common/ajax.js b/skins/common/ajax.js index 6cc652b36c..ebc4fd6039 100644 --- a/skins/common/ajax.js +++ b/skins/common/ajax.js @@ -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); -- 2.20.1