Archived
1
0

Security fixes

This commit is contained in:
Garvin Hicking
2018-07-18 11:23:02 +02:00
parent e09b2600c6
commit 19513cdf14
4 changed files with 42 additions and 8 deletions
+5
View File
@@ -1003,6 +1003,11 @@ function serendipity_saveComment($id, $commentInfo, $type = 'NORMAL', $source =
$commentInfo['type'] = $type;
$commentInfo['source'] = $source;
// Secure email addresses, only one [first] allowed to not mail to multiple recipients
$mailparts = explode(',', $commentInfo['email']);
$commentInfo['email'] = trim($mailparts[0]);
serendipity_plugin_api::hook_event('frontend_saveComment', $ca, $commentInfo);
if (!is_array($ca) || serendipity_db_bool($ca['allow_comments'])) {
if ($GLOBALS['tb_logging']) {