Skip to content

Commit

Permalink
subject checking
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Apr 13, 2018
1 parent 55b7c07 commit c25be85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cleantalkMod.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@ function cleantalk_check_message(&$msgOptions, $topicOptions, $posterOptions){
if (SMF == 'SSI') {
return;
}

// Do not check admin
if(!$user_info['is_admin']){

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

$ct_request->sender_nickname = isset($posterOptions['name']) ? $posterOptions['name'] : '';
$ct_request->message = preg_replace('/\s+/', ' ',str_replace("<br />", " ", $msgOptions['body']));
$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']));


$ct_request->submit_time = cleantalk_get_form_submit_time();

Expand Down

0 comments on commit c25be85

Please sign in to comment.