Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Commit

Permalink
4.3 更新内置发邮件问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gogobody committed Sep 13, 2021
1 parent 3c7770f commit ea9ade5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,22 @@ function checkCircleEditPermission($login_uid)
return false;
}


/* 判断敏感词是否在字符串内 */
function _checkSensitiveWords($words_str, $str)
{
$words = explode("||", $words_str);
if (empty($words)) {
return false;
}
foreach ($words as $word) {
if (false !== strpos($str, trim($word))) {
return true;
}
}
return false;
}

/**
* only those permission can send post
* @param $group
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* OneCircle theme,也许是 typecho 第一个社交圈子主题,编辑器移植于joe,经过 joe 授权,感谢 joe
* @package OneCircle
* @author gogobody <a href="https://www.ijkxs.com">即刻学术</a>
* @version 4.2
* @version 4.3
* @link check https://github.com/gogobody/onecircle
*/

Expand Down

0 comments on commit ea9ade5

Please sign in to comment.