summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-14 20:17:29 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-14 20:17:29 +0000
commitc9cbd0d55d15839091d4c1d7c37b95d1713bc0bc (patch)
treed5f0993a85b5185c73421d3750988e5f9778228c /includes
parentdb93312b65f4b32056ff1168e8ef8dbdd4528a65 (diff)
downloadbrdo-c9cbd0d55d15839091d4c1d7c37b95d1713bc0bc.tar.gz
brdo-c9cbd0d55d15839091d4c1d7c37b95d1713bc0bc.tar.bz2
- Patch #285165 by Damien Tournoud, pwolanin, chx: fixed wildcard loader problem
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 8ca099841..8d370c868 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -2279,7 +2279,7 @@ function _menu_router_build($callbacks) {
// 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 (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;