mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 21:09:11 +08:00
dup is critical cause people are mucking with stuff that comes out of the cache
This commit is contained in:
parent
5ccc3edcbe
commit
7d9fd350d3
@ -19,7 +19,7 @@ module I18n
|
||||
t = @cache[k] = translate_no_cache(*args)
|
||||
end
|
||||
|
||||
t
|
||||
t.dup
|
||||
end
|
||||
|
||||
alias_method :t, :translate
|
||||
|
Loading…
x
Reference in New Issue
Block a user