Commit bf8040a7 authored by Christophe Maudoux's avatar Christophe Maudoux

Fix empty submitted value (#1664)

parent 049df70e
......@@ -56,10 +56,10 @@ sub init {
sub run {
my ( $self, $req ) = @_;
my $spoofId = $req->param('spoofId') || '';
my $spoofId = $req->param('spoofId') || $req->{user};
return PE_MALFORMEDUSER
if ( $spoofId
and $req->param('spoofId') !~ /$self->{conf}->{userControl}/o );
and $spoofId !~ /$self->{conf}->{userControl}/o );
# Skip if no submitted SpoofId
return PE_OK unless $spoofId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment