Merge commit '63865eb39f' into WebGUI8. up to 7.9.11
This commit is contained in:
commit
7b218942b3
72 changed files with 3085 additions and 407 deletions
|
|
@ -235,7 +235,11 @@ sub load {
|
|||
croak $moduleError{$module};
|
||||
}
|
||||
|
||||
# Check if we already have it
|
||||
# Sanitize
|
||||
if ( $module !~ m{^\w+(?:::\w+)*$} ) {
|
||||
croak "Invalid module name: $module";
|
||||
}
|
||||
|
||||
# Try to load the module
|
||||
my $modulePath = $module . ".pm";
|
||||
$modulePath =~ s{::|'}{/}g;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue