From: Brad Jorsch Date: Mon, 4 Jan 2016 19:14:28 +0000 (-0800) Subject: SECURITY: Check for mbstring.func_overload at runtime X-Git-Tag: 1.31.0-rc.0~6886 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=26c2d03c1766f98c9e5bbbb4237dd312d2799cd9;p=lhc%2Fweb%2Fwiklou.git SECURITY: Check for mbstring.func_overload at runtime The installer already checks for this, let's also catch the case when someone enables this after installation. Bug: T122807 Change-Id: Ieddbc932f482d52da1688d472f494074c81124b2 Signed-off-by: Chad Horohoe --- diff --git a/includes/WebStart.php b/includes/WebStart.php index 29ad456c12..8314e2eb82 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -26,6 +26,10 @@ * @file */ +if ( ini_get( 'mbstring.func_overload' ) ) { + die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' ); +} + # bug 15461: Make IE8 turn off content sniffing. Everybody else should ignore this # We're adding it here so that it's *always* set, even for alternate entry # points and when $wgOut gets disabled or overridden.