Skip to content

The mime_type function doesn’t handle unknown extensions #41

@bfontaine

Description

@bfontaine

The mime_type function doesn’t check if an extension exists before getting its type. So if someone call this function with a non-existing extension (e.g. an empty string), he/she gets a warning:

Notice: Undefined index:  in /…/sofadesign/limonade/lib/limonade.php on line 2417

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions