File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/b3log/symphony/processor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1045,9 +1045,10 @@ public void updateProfiles(final RequestContext context) {
10451045 }
10461046
10471047 // 敏感词检测
1048- String content = userNickname + "\n " + userIntro + "\n " + userTags + " \n " + userURL ;
1048+ String content = userNickname + "\n " + userIntro + "\n " + userTags ;
10491049 JSONObject censorResult = QiniuTextCensor .censor (content );
1050- if (censorResult .optString ("do" ).equals ("block" )) {
1050+ JSONObject censor2Result = QiniuTextCensor .censor (userURL );
1051+ if (censorResult .optString ("do" ).equals ("block" ) || censor2Result .optString ("do" ).equals ("block" )) {
10511052 context .renderMsg ("个人信息中含违规信息,请修改后重试。" );
10521053 context .renderJSONValue (Keys .CODE , StatusCodes .ERR );
10531054 return ;
You can’t perform that action at this time.
0 commit comments