mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: stop potential symbol leak
This commit is contained in:
parent
24932009a5
commit
e18b030b8a
@ -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 New Issue
Block a user