Skip to content

Commit

Permalink
Item9675: Correct regex - allow parm=value without -
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@9266 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Sep 20, 2010
1 parent e93d2bf commit 2e5a6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Engine/CLI.pm
Expand Up @@ -30,7 +30,7 @@ sub run {
while ( scalar @args ) {
my $name;
my $arg = shift @args;
if ( $arg =~ /-([a-z0-9_]+)=(.*)$/i ) {
if ( $arg =~ /^-?([a-z0-9_]+)=(.*)$/i ) {
( $name, $arg ) = ( TAINT($1), TAINT($2) );
}
elsif ( $arg =~ /^-([a-z0-9_]+)/ ) {
Expand Down

0 comments on commit 2e5a6af

Please sign in to comment.