Skip to content

send() with filename, which contains spaces works wrong in Firefox #14

Closed
@kykint

Description

@kykint

If $filename contains spaces (e.g. "Some cool file.doc"), then in Firefox it saves with only first part of name (in the case of example 'Some').
My found quick fix:
WAS:

'Content-Disposition: ' . $disposition .
                '; filename=' . $filename .
                "; filename*=UTF-8''" . rawurlencode($filename)

BECOME

'Content-Disposition: ' . $disposition .
                '; filename=' . rawurlencode($filename) .
                "; filename*=UTF-8''" . rawurlencode($filename)

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