mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
SECURITY: stop potential symbol leak
This commit is contained in:
parent
24932009a5
commit
e18b030b8a
1 changed files with 2 additions and 2 deletions
|
@ -494,9 +494,9 @@ class Post < ActiveRecord::Base
|
|||
|
||||
def parse_quote_into_arguments(quote)
|
||||
return {} unless quote.present?
|
||||
args = {}
|
||||
args = HashWithIndifferentAccess.new
|
||||
quote.first.scan(/([a-z]+)\:(\d+)/).each do |arg|
|
||||
args[arg[0].to_sym] = arg[1].to_i
|
||||
args[arg[0]] = arg[1].to_i
|
||||
end
|
||||
args
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue