Skip to content

Commit

Permalink
Fix JavaScript injection through page title
Browse files Browse the repository at this point in the history
  • Loading branch information
HakanS committed Jul 28, 2012
1 parent 2569748 commit 494874c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function _getTagXml($options) {
}

$fsize = 8 + round(($size-$min)/$delta);
$xmlCloude .= '<a href="' .$link . '" class="' . $class .'"' .' title="' . $title . '" style="font-size: '. $fsize .'pt;">' . $name . '</a>' . DOKU_LF;
$xmlCloude .= '<a href="' .$link . '" class="' . $class .'"' .' title="' . $title . '" style="font-size: '. $fsize .'pt;">' . hsc($name) . '</a>' . DOKU_LF;
}
return $xmlCloude;
}
Expand Down

0 comments on commit 494874c

Please sign in to comment.