Skip to content
Snippets Groups Projects
Commit 79d9c524 authored by Demian Katz's avatar Demian Katz
Browse files

Resolving VUFIND-741 (bug in validation of module name -- illegal characters allowed).

parent 569783e2
No related merge requests found
......@@ -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";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment