forked from Trustie/forgeplus
fixed 增加代码库文本内容显示敏感词检测2
This commit is contained in:
parent
44c8d0be7c
commit
b02cf8fe79
|
@ -266,7 +266,9 @@ module RepositoriesHelper
|
||||||
if download_type(file_type)
|
if download_type(file_type)
|
||||||
return entry['content']
|
return entry['content']
|
||||||
end
|
end
|
||||||
render_decode64_content(entry['content'])
|
text = render_decode64_content(entry['content'])
|
||||||
|
text = "该内容不合规,请修改。" if text.present? && !HarmoniousDictionary.clean?(text)
|
||||||
|
text
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue