Welcome Guest, Not a member yet? Register   Sign In
using regex for method in csrf_exclude_uris
#1

Is there a way to use regex in the csrf_exclude_uris array so that I only need to define the controller?
I know I can use regex for the end parameter like so:



Code:
controller/method-name/[0-9]+

But what I want is to just exclude the controller and any method like so:



Code:
controller/[a-z\-]+


or



Code:
controller/[a-z\-]+/[0-9]+


Haven't found any examples doing it anywhere and since it is not working, just wondering if anyone knows if it is actually possible, or if you see something wrong with what I am trying.
Thanks in advance.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB