1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Escape html chars in email

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař
2015-05-11 09:59:46 +02:00
parent f3901b7ef7
commit de83138a89

View File

@@ -66,7 +66,7 @@ function PMA_printGitRevision()
. sprintf(
__('committed on %1$s by %2$s'),
PMA_Util::localisedDate(strtotime($committer['date'])),
'<a href="' . PMA_linkURL('mailto:' . $committer['email']) . '">'
'<a href="' . PMA_linkURL('mailto:' . htmlspecialchars($committer['email'])) . '">'
. htmlspecialchars($committer['name']) . '</a>'
)
. ($author != $committer
@@ -74,7 +74,7 @@ function PMA_printGitRevision()
. sprintf(
__('authored on %1$s by %2$s'),
PMA_Util::localisedDate(strtotime($author['date'])),
'<a href="' . PMA_linkURL('mailto:' . $author['email']) . '">'
'<a href="' . PMA_linkURL('mailto:' . htmlspecialchars$author['email'])) . '">'
. htmlspecialchars($author['name']) . '</a>'
)
: ''),