Index: includes/EditPage.php =================================================================== --- includes/EditPage.php (revision 104205) +++ includes/EditPage.php (working copy) @@ -1717,10 +1717,10 @@ return false; } if ( $this->section != '' && $this->section != 'new' ) { $matches = array(); if ( !$this->summary && !$this->preview && !$this->diff ) { - preg_match( "/^(=+)(.+)\\1/mi", $this->textbox1, $matches ); + preg_match( "/^(=+)(.+)\\1/si", $this->textbox1, $matches ); if ( !empty( $matches[2] ) ) { global $wgParser; $this->summary = "/* " .