diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-14 13:31:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-14 13:31:38 +0000 |
commit | db93312b65f4b32056ff1168e8ef8dbdd4528a65 (patch) | |
tree | f999b1a30a2c9f72d3c47c4bde3112f662dbddce /includes | |
parent | 2dd6e4e0dfdd8d652fac3e394de8d93efef0cc83 (diff) | |
download | brdo-db93312b65f4b32056ff1168e8ef8dbdd4528a65.tar.gz brdo-db93312b65f4b32056ff1168e8ef8dbdd4528a65.tar.bz2 |
- Patch #285165 by Heine, Gabor: fixed wildcard loader names with numbers.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 8b073d111..8ca099841 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2276,7 +2276,10 @@ function _menu_router_build($callbacks) { // Extract load and to_arg functions. foreach ($parts as $k => $part) { $match = FALSE; - if (preg_match('/^%([a-z_]*)$/', $part, $matches)) { + // Look for wildcards in the form allowed to be used in PHP functions, + // because we are using these to construct the load function names. + // See http://php.net/manual/en/language.functions.php for reference. + if (preg_match('/^%([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)$/', $part, $matches)) { if (empty($matches[1])) { $match = TRUE; $load_functions[$k] = NULL; |