Skip to content

Filters - email removes the ' character #10595

Closed
@AmazingDreams

Description

@AmazingDreams

According to Wikipedia the following special characters are allowed in an email address:

"These special characters: # - _ ~ ! $ & ' ( ) * + , ; = : and percentile encoding i.e. %20"

https://en.wikipedia.org/wiki/Email_address#Local_part

Also when you do a 'native' php filter_var call, the ' character is not removed:

$email = "some'email@example.com";
echo filter_var($email, FILTER_SANITIZE_EMAIL); // some'email@example.com

Why does Phalcon remove the ' character?

https://github.com/phalcon/cphalcon/blob/master/phalcon/filter.zep#L150

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions