Liquid::Template security issue: not a problem
January 21st, 2008
Well, it seems I jumped the gun. In Security issue in Liquid::Template, I thought I had a found a problem with the Liquid template engine. Instead, I should have looked more closely at what I do:
1 2 3 4 5 6 |
class PagesController < ApplicationController def show # ... render(:inline => @page.render, :layout => false) end end |
The details can be found at #render on the Ruby on Rails API. Seems like it’s time for us to switch to using render :text.
I am sorry for any scare I caused. If I had run a separate test case, I’d have immediately seen I was in error, and not Liquid.