add a hook to muck around with the arguments array after it's initialized
This commit is contained in:
parent
14662354dc
commit
6b4410d9ea
|
@ -109,3 +109,5 @@ EndSubGroupNav: At the end of the subscriptions group nav menu
|
||||||
RouterInitialized: After the router instance has been initialized
|
RouterInitialized: After the router instance has been initialized
|
||||||
- $m: the Net_URL_Mapper that has just been set up
|
- $m: the Net_URL_Mapper that has just been set up
|
||||||
|
|
||||||
|
ArgsInitialized: After the argument array has been initialized
|
||||||
|
- $args: associative array of arguments, can be modified
|
||||||
|
|
|
@ -101,6 +101,8 @@ function main()
|
||||||
|
|
||||||
$args = array_merge($args, $_REQUEST);
|
$args = array_merge($args, $_REQUEST);
|
||||||
|
|
||||||
|
Event::handle('ArgsInitialize', array(&$args));
|
||||||
|
|
||||||
$action = $args['action'];
|
$action = $args['action'];
|
||||||
|
|
||||||
if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) {
|
if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user