Skip to content

Commit

Permalink
htmlentities on return type in hooks.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Dolaś committed Oct 13, 2014
1 parent 4fd7927 commit 03f7e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serverside/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function genHookSnippet($hook, $definition) {

$s = "";
if (!$definition) $s .= "public override ";
$s .= $hReturnType." ".$hName;
$s .= htmlentities($hReturnType)." ".$hName;

$s .= "(";
$first = true;
Expand Down Expand Up @@ -75,7 +75,7 @@ function echoHook($hook) {
if ($hReturn["type"] != "void") {
echo("<table class=\"table table-condensed\" style=\"margin-bottom: 8px;\">");
echo("<tbody><tr>");
echo("<td><span style=\"font-weight: bold;\">Returns: </span> <code>".$hReturn["type"]."</code></td>");
echo("<td><span style=\"font-weight: bold;\">Returns: </span> <code>".htmlentities($hReturn["type"])."</code></td>");
echo("<td>".$hReturn["text"]."</td>");
echo("</tr></tbody>");
echo("</table>");
Expand Down

0 comments on commit 03f7e8e

Please sign in to comment.