mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
only if \u0000 is included for the perf
This commit is contained in:
parent
431def1f52
commit
5f5d055a86
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue