Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

[Bug][Mail] Bad Regex for Content Type header #2728

@davidwindell

Description

@davidwindell

Microsoft Excel files can have a Content Type of application/vnd.ms-excel which causes an exception to be raised in the Zend\Mail\Header\ContentType file [line 105];

Zend\Mail\Header\ContentType::setType expects a value in the format "type/subtype"; received "application/vnd.ms-excel"

if (!preg_match('/^[a-z_-]+\/[a-z_-]+$/i', $type)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions