From 79d9c5240de691d6ab467cbbe12e3cf00012d4c1 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Fri, 1 Feb 2013 08:35:29 -0500 Subject: [PATCH] Resolving VUFIND-741 (bug in validation of module name -- illegal characters allowed). --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 07571a59431..756bce8bc02 100644 --- a/install.php +++ b/install.php @@ -242,7 +242,7 @@ function getModule() "\nWhat module name would you like to use? [blank for none] " ) ); - $regex = '/[a-zA-Z][0-9a-zA-Z_]*/'; + $regex = '/^[a-zA-Z][0-9a-zA-Z_]*$/'; $illegalModules = array('VuFind', 'VuFindConsole', 'VuFindTest'); if (in_array($moduleInput, $illegalModules)) { echo "\n{$moduleInput} is a reserved name; please try another.\n"; -- GitLab