* Convert non-UTF-8 URL parameters even if referer is local
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Jun 2005 02:04:44 +0000 (02:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 27 Jun 2005 02:04:44 +0000 (02:04 +0000)
RELEASE-NOTES
includes/WebRequest.php

index 71f3178..760f396 100644 (file)
@@ -364,6 +364,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 2520) Don't show enotif options when disabled
 
 == Changes since 1.5beta1 ==
+
 * (bug 2531) Changed the interwiki name for sh (Serbocroatian) to
   Srpskohrvatski/Српскохрватски (was Српскохрватски (Srbskohrvatski))
 * Nonzero return code for command-line scripts on wfDebugDieBacktrace()
@@ -374,6 +375,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 2541) Fix unprotect tab
 * (bug 1242) category list now show on edit page
 * Skip sidebar entries where link text is '-'
+* Convert non-UTF-8 URL parameters even if referer is local
 
 
 === Caveats ===
index 4de0820..7e3a583 100644 (file)
@@ -111,12 +111,8 @@ class WebRequest {
                if( isset( $arr[$name] ) ) {
                        global $wgServer, $wgContLang;
                        $data = $arr[$name];
-                       if( isset( $_GET[$name] ) &&
-                               !is_array( $data ) &&
-                               ( empty( $_SERVER['HTTP_REFERER'] ) ||
-                               strncmp($wgServer, $_SERVER['HTTP_REFERER'], strlen( $wgServer ) ) ) ) {
-                               # For links that came from outside, check for alternate/legacy
-                               # character encoding.
+                       if( isset( $_GET[$name] ) && !is_array( $data ) ) {
+                               # Check for alternate/legacy character encoding.
                                if( isset( $wgContLang ) ) {
                                        $data = $wgContLang->checkTitleEncoding( $data );
                                }