Skip to content

Commit

Permalink
Merge branch 'HSINWEI-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus committed Mar 25, 2017
2 parents 74bb3b7 + 83896c0 commit 7e68ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mantis.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ function renderMantis( $input, $args, $mwParser )
return $errmsg;
}

$db->set_charset("utf8");

// create project array - accept only project names that exist in the database to prevent SQL injection
// this check decreases performance a tiny bit, because we have to make another db call. but security comes first!
if (!empty($tmpProjects))
Expand Down Expand Up @@ -630,6 +632,6 @@ function renderMantis( $input, $args, $mwParser )
$db->close();

//wfMessage("Test Message")->plain();
return $mwParser->recursiveTagParse(utf8_encode($output));
return $mwParser->recursiveTagParse($output);
}
?>

0 comments on commit 7e68ac2

Please sign in to comment.