Safe.pm 2.27 restrict the usage of custom functions
For example:
{panel:title=SSOExtensions.pm} package SSOExtensions;
use Net::LDAP;
sub function1 { my $portal = shift;
my $ldap = Net::LDAP->new('localhost');
return $ldap;
}
1; {panel}
This works well on Debian or Ubuntu (Safe 2.18) but not in CentOS (Safe 2.27):
{panel:title=Apache error log} Can't locate object method "new" via package "Net::LDAP" (perhaps you forgot to load "Net::LDAP"?) at /root/SSOExtensions.pm {panel}