You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just had a spammer send a route to me that was passed through to will_paginate and it caused an uncaught exception. The route was /page/wp_admin and WP tried to convert the 'wp_admin' to an integer and failed.
I put a pre_flioght chunk of code in my controller to catch and correct this but perhaps it would be better to catch this in WP. Here's the code I have in a :before_filter...
It's not a bug, it's a feature. Invalid page parameters in your app should trigger WillPaginate::InvalidPage exceptions. If you don't want to be aware of these exceptions, you can choose to silence them or work around them (as you did).
I just had a spammer send a route to me that was passed through to will_paginate and it caused an uncaught exception. The route was /page/wp_admin and WP tried to convert the 'wp_admin' to an integer and failed.
I put a pre_flioght chunk of code in my controller to catch and correct this but perhaps it would be better to catch this in WP. Here's the code I have in a :before_filter...
The text was updated successfully, but these errors were encountered: