Subject: | can't use string as HASH ref line 1690 in scrub() |
I recently upgraded from 3.01_06 to 3.026, and now getting an error on line 1690 in scrub(). I have set the Type =
'text/plain' (for example). And in scrub() the lines:
1689 ### TBD: this is not really right for message/digest:
1690 if ( ( keys %{ $self->{Attrs}{'content-type'} } == 1 )
1691 and ( $self->_safe_attr('content-type') eq 'text/plain' ) )
1692 {
don't work since $self->{Attrs}{'content-type'} would be a scalar. Does that need to be something like
1689 ### TBD: this is not really right for message/digest:
1690 if ( ( $self->{Attrs}{'content-type'}!~m/^HASH/ or keys %{ $self->{Attrs}{'content-type'} } == 1 )
1691 and ( $self->_safe_attr('content-type') eq 'text/plain' ) )
1692 {
??
-craig