diff --git a/themes/contribute.jquery.org/cla-check.php b/themes/contribute.jquery.org/cla-check.php index 2f1dfd4b..f75656cd 100644 --- a/themes/contribute.jquery.org/cla-check.php +++ b/themes/contribute.jquery.org/cla-check.php @@ -133,12 +133,15 @@ function neglectedAuthors( $data ) { } function commitLog( $data ) { - $commitPrefix = "https://github.com/$data->owner/$data->repo/commit/"; + $commitPrefix = "https://github.com/" . + htmlspecialchars( "$data->owner/$data->repo" ) . + "/commit/"; $html = "
\n"; foreach ( $data->data->commits as $commit ) { - $html .= "
$commit->hash
\n"; - $html .= "
" . htmlspecialchars( "$commit->name <$commit->email>" ) . "hash ); + $html .= "
$escapedHash
\n"; + $html .= "
" . htmlspecialchars( "$commit->name <$commit->email>" ) . "
\n"; } $html .= "
\n"; return $html;