diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index bf7bcd1c5e8..d01c3ab3481 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -76,7 +76,10 @@ class ApplicationController < ActionController::Base def store_preloaded(key, json) @preloaded ||= {} - @preloaded[key] = json + # I dislike that there is a gsub as opposed to a gsub! + # but we can not be mucking with user input, I wonder if there is a way + # to inject this safty deeper in the library or even in AM serializer + @preloaded[key] = json.gsub("