This project is archived and is in readonly mode.

#196 ✓resolved
José Valim

filter_parameter_logging creates a public controller method

Reported by José Valim | May 14th, 2008 @ 06:54 PM | in 2.1.1

filter_parameter_logging creates a public method in the controllers called :filter_parameters.

This is really not nice, cause if someone use the default routes:

map.connect ':controller/:action/:id'

The is exposed (and will raise a 500 error)!

Then I just added at the end of filter_parameters_logging:

self.class_eval{ protected :filter_parameters }

I don't know if it's the best work out (ideas?).

I added some tests also. =)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>