mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
only if \u0000 is included for the perf
This commit is contained in:
parent
431def1f52
commit
5f5d055a86
|
@ -54,8 +54,8 @@ class PostCreator
|
|||
# If we don't do this we introduce a rather risky dependency
|
||||
@user = user
|
||||
@opts = opts || {}
|
||||
opts[:title] = pg_clean_up(opts[:title]) if opts[:title]
|
||||
opts[:raw] = pg_clean_up(opts[:raw]) if opts[:raw]
|
||||
opts[:title] = pg_clean_up(opts[:title]) if opts[:title] && opts[:title].include?("\u0000")
|
||||
opts[:raw] = pg_clean_up(opts[:raw]) if opts[:raw] && opts[:raw].include?("\u0000")
|
||||
@spam = false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user