[Rt-commit] r5921 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Tue Sep 12 18:53:25 EDT 2006
Author: ruz
Date: Tue Sep 12 18:53:24 2006
New Revision: 5921
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in
Log:
r3723 at cubic-pc: cubic | 2006-09-13 03:02:58 +0400
rt-mailgate
* check values of --extension option, don't allow not standard
things.
* report errors
Modified: rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in (original)
+++ rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in Tue Sep 12 18:53:24 2006
@@ -90,8 +90,12 @@
exit 0;
}
-if ($opts{'extension'}) {
- $args{$opts{'extension'}} = $ENV{'EXTENSION'};
+if ( $opts{'extension'} ) {
+ unless ( $opts{'extension'} =~ /^(action|queue|ticket)$/i ) {
+ print STDERR "Wrong value of --extension argument\n";
+ exit 1;
+ }
+ $args{ lc $opts{'extension'} } = $ENV{'EXTENSION'};
}
# Set up cookie here.
More information about the Rt-commit
mailing list