through the conf.pl commandline, thanks Tomas Kuliavas.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12823
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if ( $ARGV[0] eq '--install-plugin' ) {
print "Activating plugin " . $ARGV[1] . "\n";
- push @plugins, $ARGV[1];
- save_data();
- exit(0);
+ if ( -d "../plugins/" . $ARGV[1]) {
+ push @plugins, $ARGV[1];
+ save_data();
+ exit(0);
+ } else {
+ print "No such plugin.\n";
+ exit(1);
+ }
} elsif ( $ARGV[0] eq '--remove-plugin' ) {
print "Removing plugin " . $ARGV[1] . "\n";
foreach $plugin (@plugins) {