r93475 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93474‎ | r93475 | r93476 >
Date:18:19, 29 July 2011
Author:preilly
Status:ok
Tags:
Comment:
merged changes from r93474
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -49,7 +49,7 @@
5050 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' );
5151
5252 class ExtMobileFrontend {
53 - const VERSION = '0.5.7';
 53+ const VERSION = '0.5.8';
5454
5555 private $doc;
5656
@@ -373,6 +373,7 @@
374374 }
375375
376376 public function DOMParse( $html ) {
 377+ $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
377378 libxml_use_internal_errors( true );
378379 $this->doc = new DOMDocument();
379380 $this->doc->loadHTML( '<?xml encoding="UTF-8">' . $html );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93474add call to mb_convert_encoding for UTF-8 issuepreilly18:13, 29 July 2011

Status & tagging log