The function is as follows: {code...} $ action is a URL parameter. What is the significance of this function? The function is as follows:
Function check_name ($ action) {if (strpos ($ action ,'__')! = False | strpos ($ action ,'--')! = False) return false; return preg_match ("/^ [a-z0-9] {1} [a-z0-9 _ \-] {0,} [a-z0-9] {1} $ /", $ action );}
$ Action is a URL parameter. What does this mean?
Reply content:
The function is as follows:
Function check_name ($ action) {if (strpos ($ action ,'__')! = False | strpos ($ action ,'--')! = False) return false; return preg_match ("/^ [a-z0-9] {1} [a-z0-9 _ \-] {0,} [a-z0-9] {1} $ /", $ action );}
$ Action is a URL parameter. What does this mean?
In my opinion, most of them are private methods, which may prevent private actions from being accessed.
Isn't it enough to verify that a string meets the rules?