mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Don't allow underscores in variant names (#9182)
* Don't allow underscores in variant names * forgot test files * Update test data
This commit is contained in:
@@ -98,6 +98,10 @@ if (isset($options['v'])) {
|
||||
$variant = $options['variant'];
|
||||
}
|
||||
|
||||
if (str_contains($variant, '_')) {
|
||||
exit("Variant name cannot contain an underscore (_).\n");
|
||||
}
|
||||
|
||||
echo "OS: $target_os\n";
|
||||
echo "Module(s): $modules_input\n";
|
||||
if ($variant) {
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user