Skip to content

Commit

Permalink
Improve Shredder attachments regex
Browse files Browse the repository at this point in the history
In order to match also - character.
  • Loading branch information
federicobaldo committed Jan 24, 2018
1 parent b027918 commit b2d46a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RT/Shredder/Plugin/Attachments.pm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sub TestArgs
my %args = @_;
my $queue;
if( $args{'file'} ) {
unless( $args{'file'} =~ /^[\w\. *?]+$/) {
unless( $args{'file'} =~ /^[\w\.\- *?]+$/) {
return( 0, "Files mask '$args{file}' has invalid characters" );
}
$args{'file'} = $self->ConvertMaskToSQL( $args{'file'} );
Expand Down

0 comments on commit b2d46a1

Please sign in to comment.