SECURITY: Check for mbstring.func_overload at runtime
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 4 Jan 2016 19:14:28 +0000 (11:14 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 20 May 2016 16:47:54 +0000 (09:47 -0700)
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 <chadh@wikimedia.org>
includes/WebStart.php

index 29ad456..8314e2e 100644 (file)
  * @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.