mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +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
|
# If we don't do this we introduce a rather risky dependency
|
||||||
@user = user
|
@user = user
|
||||||
@opts = opts || {}
|
@opts = opts || {}
|
||||||
opts[:title] = pg_clean_up(opts[:title]) if opts[:title]
|
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] = pg_clean_up(opts[:raw]) if opts[:raw] && opts[:raw].include?("\u0000")
|
||||||
@spam = false
|
@spam = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user