r17322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17321‎ | r17322 | r17323 >
Date:13:27, 31 October 2006
Author:brion
Status:old
Tags:
Comment:
* (bug 7766) Remove redundant / from AJAX requests, can break some servers
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/skins/common/ajax.js (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/common/ajax.js
@@ -75,7 +75,7 @@
7676 var i, x, n;
7777 var uri;
7878 var post_data;
79 - uri = wgServer + "/" + wgScriptPath + "/index.php?action=ajax";
 79+ uri = wgServer + wgScriptPath + "/index.php?action=ajax";
8080 if (sajax_request_type == "GET") {
8181 if (uri.indexOf("?") == -1)
8282 uri = uri + "?rs=" + encodeURIComponent(func_name);
Index: trunk/phase3/includes/DefaultSettings.php
@@ -1037,7 +1037,7 @@
10381038 * to ensure that client-side caches don't keep obsolete copies of global
10391039 * styles.
10401040 */
1041 -$wgStyleVersion = '22';
 1041+$wgStyleVersion = '23';
10421042
10431043 # Server-side caching:
10441044
Index: trunk/phase3/RELEASE-NOTES
@@ -110,7 +110,9 @@
111111 styling (class="mw-templatesUsedExplanation").
112112 * Added {{#special:}} parser function, to give the local default title for
113113 special pages
 114+* (bug 7766) Remove redundant / from AJAX requests, can break some servers
114115
 116+
115117 == Languages updated ==
116118
117119 * Bishnupriya Manipuri (bpy)