- Patch #285165 by Damien Tournoud, pwolanin, chx: fixed wildcard loader problem

merge-requests/26/head
Dries Buytaert 2008-10-14 20:17:29 +00:00
parent db93312b65
commit c9cbd0d55d
1 changed files with 1 additions and 1 deletions

View File

@ -2279,7 +2279,7 @@ function _menu_router_build($callbacks) {
// Look for wildcards in the form allowed to be used in PHP functions, // Look for wildcards in the form allowed to be used in PHP functions,
// because we are using these to construct the load function names. // because we are using these to construct the load function names.
// See http://php.net/manual/en/language.functions.php for reference. // 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])) { if (empty($matches[1])) {
$match = TRUE; $match = TRUE;
$load_functions[$k] = NULL; $load_functions[$k] = NULL;