diff options
| author | fukachan <fukachan> | 2002-07-18 23:47:35 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-07-18 23:47:35 +0000 |
| commit | bcdb9550852be81c3613cc5463fd16f1b07fc7e1 (patch) | |
| tree | 08489319b12fb28520592d39688f415e0feecea6 | |
| parent | 4dec6f69a9bfb92a4a2b4cdf8fb64f3a103d6843 (diff) | |
| download | fml8-bcdb9550852be81c3613cc5463fd16f1b07fc7e1.tar.gz fml8-bcdb9550852be81c3613cc5463fd16f1b07fc7e1.tar.bz2 fml8-bcdb9550852be81c3613cc5463fd16f1b07fc7e1.zip | |
bug fix wrong command regexp
| -rw-r--r-- | fml/lib/FML/Restriction/Command.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fml/lib/FML/Restriction/Command.pm b/fml/lib/FML/Restriction/Command.pm index 389bb601..04113bdb 100644 --- a/fml/lib/FML/Restriction/Command.pm +++ b/fml/lib/FML/Restriction/Command.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Command.pm,v 1.3 2002/07/02 04:01:29 fukachan Exp $ +# $FML: Command.pm,v 1.4 2002/07/18 23:14:12 fukachan Exp $ # package FML::Restriction::Command; @@ -54,7 +54,10 @@ sub is_secure_command_string # command = [-\d\w]+ # mail address = [-_\w]+@[\w\-\.]+ # command options = last:30 - if ($s =~/^[-\d\w]+\s+[\s\w\_\-\.\,\@\:]+$/o) { + if ($s =~/^[-\d\w]+\s*$/o) { + return 1; + } + elsif ($s =~/^[-\d\w]+\s+[\s\w\_\-\.\,\@\:]+$/o) { return 1; } |
