From c9cbd0d55d15839091d4c1d7c37b95d1713bc0bc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Oct 2008 20:17:29 +0000 Subject: [PATCH] - Patch #285165 by Damien Tournoud, pwolanin, chx: fixed wildcard loader problem --- includes/menu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/menu.inc b/includes/menu.inc index 8ca09984103..8d370c86897 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;