Skip to content

[BUG] sipmsgops->has_body_part matching is broken #4129

Description

@securepii-dev

OpenSIP 4.1

As per the discussion in #3900 has_body_part matching is subtly flawed. It only matches designated MIME types and returns true for everything else.
It should fall back to pure complete string matching when [SUB]TYPE_UNKNOWN is detected.

As an example
Content-Type = "application/bar"
has_body_part("application/foo") should equal false
has_body_part("application/barber") should equal false
has_body_part("application/bar") should equal true

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions