An issue for consideration

Bluebie, Jenna blueberry at creativepony.com
Fri May 23 02:20:21 EDT 2008


This should help. include Camping::ControllerSecurity in your  
controllers module or your Camping (or whatever Camping.goes has  
turned it in to) module, after requiring this:

> module Camping
>   module ControllerSecurity
>     def service(*a)
>       @method = 'get' unless ['get', 'post', 'delete',  
> 'head'].include?(@method.to_s.downcase)
>       super(*a)
>     end
>   end
> end


And the world should feel safe again, I think. I haven't really tested  
it properly, but what could go wrong? It certainly isn't making my app  
break.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/camping-list/attachments/20080523/81f1cb5e/attachment-0001.html>


More information about the Camping-list mailing list