Skip to content

Commit c25be85

Browse files
author
davydovct
committed
subject checking
1 parent 55b7c07 commit c25be85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cleantalkMod.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ function cleantalk_check_message(&$msgOptions, $topicOptions, $posterOptions){
471471
if (SMF == 'SSI') {
472472
return;
473473
}
474-
475474
// Do not check admin
476475
if(!$user_info['is_admin']){
477476

@@ -495,7 +494,8 @@ function cleantalk_check_message(&$msgOptions, $topicOptions, $posterOptions){
495494
$ct_request->sender_ip = $ct->cleantalk_get_real_ip();
496495

497496
$ct_request->sender_nickname = isset($posterOptions['name']) ? $posterOptions['name'] : '';
498-
$ct_request->message = preg_replace('/\s+/', ' ',str_replace("<br />", " ", $msgOptions['body']));
497+
$ct_request->message = isset($msgOptions['subject']) ? preg_replace('/\s+/', ' ',str_replace("<br />", " ", $msgOptions['subject']))."\n".preg_replace('/\s+/', ' ',str_replace("<br />", " ", $msgOptions['body'])) : preg_replace('/\s+/', ' ',str_replace("<br />", " ", $msgOptions['body']));
498+
499499

500500
$ct_request->submit_time = cleantalk_get_form_submit_time();
501501

0 commit comments

Comments
 (0)