r204 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r203‎ | r204 | r205 >
Date:03:20, 26 February 2002
Author:vibber
Status:old
Tags:
Comment:
IMPORTANT FIX FOR HTML CODE
Modified paths:
  • /trunk/phpwiki/fpw/wikiPage.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/fpw/wikiPage.php
@@ -691,7 +691,7 @@
692692 # Don't allow more closing tags than opening tags; normalize tables
693693 if ( $slash ) {
694694 if ( $tagcount[$t] < 1 )
695 - break;
 695+ continue;
696696 --$tagcount[$t];
697697 if($t == "table")
698698 foreach ( $tabletags as $tt )
@@ -1020,8 +1020,8 @@
10211021 # Text encoding
10221022 if(count($wikiEncodingNames) > 1) { # Shortcut for switching character encodings
10231023 global $THESCRIPT;
1024 - $u = $THESCRIPT . "?" . getenv("QUERY_STRING");
1025 - $u = getenv ( "REQUEST_URI" ) ;
 1024+ #$u = $THESCRIPT . "?" . getenv("QUERY_STRING");
 1025+ $u = getenv ( "REQUEST_URI" ) ;
10261026 $u = preg_replace("/[\?\&]encoding=[0-9]+/", "", $u);
10271027 $u .= ((!strchr($u, "?") && strstr($THESCRIPT,$u)) ? "?" : "&");
10281028 foreach ( $wikiEncodingNames as $i => $enc ) {

Status & tagging log