ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Reserved characters - using apostrophe's in emails and usernames

September 24, 2009 3:16pm

Subscribe [2]
  • #1 / Sep 24, 2009 3:16pm

    e3womenforum

    5 posts

    This question may be related to a resolved thread.

    Is there any p[ossible way to allow usernames or emails to contain apostrophe’s?
    The thread above says “

    |  ”  ’  !

    are reserved characters. “

    But I have some emails/usernames ie: O’Leary.  This is in their functioning email and username.  IS there any way I can allow the use of apostrophe’s in emails and usernames?

    /** ----------------------------------
            /**  Is username formatting correct?
            /** ----------------------------------*/
            
            // Reserved characters:  |  "  '  !
        
            if (preg_match("/[\||\'|\"|\!]/", $this->username))
            {
                $this->errors[] = $LANG->line('invalid_characters_in_username');
            }

    So in brief -
    |  ”  ’  !

    are reserved characters.

  • #2 / Sep 24, 2009 3:37pm

    Ingmar

    29245 posts

    I know you’ve seen this thread, which gives a little more detail. I am afraid using apostrophes in email addresses is not an out of the box option right now, as it were (and probably not a terribly good idea, but that’s another story).

  • #3 / Sep 24, 2009 3:40pm

    e3womenforum

    5 posts

    Yes that other thread solved my problem.

  • #4 / Sep 24, 2009 3:49pm

    Ingmar

    29245 posts

    Glad to hear it. Please don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases