We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6b4410d9 authored by Evan Prodromou's avatar Evan Prodromou

add a hook to muck around with the arguments array after it's initialized

parent 14662354
......@@ -109,3 +109,5 @@ EndSubGroupNav: At the end of the subscriptions group nav menu
RouterInitialized: After the router instance has been initialized
- $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);
Event::handle('ArgsInitialize', array(&$args));
$action = $args['action'];
if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment