Page 1 of 1

[solved] 2.0 email address with hyphen "invalid"

Posted: Tue Sep 22, 2015 5:55 pm
by PinkElephant
Hi

With a clean install of 2.0 when I try to edit/save the email address at 'My Account -> User Account' I'm getting "The email address entered is invalid" -- for any address that contains a hyphen.

For example, t-t@example.com will fail (but 't_t@example.com' is OK). I guess that admin uses a different validation routine than the installer.

Code: Select all

Cms Version: 2.0

Installed Modules:

    AdminSearch: 1.0
    CMSContentManager: 1.0
    DesignManager: 1.0
    FileManager: 1.5
    MicroTiny: 2.0
    ModuleManager: 2.0
    Navigator: 1.0
    News: 2.50
    Search: 1.50
    Gallery: 2.0.2


Config Information:

    php_memory_limit:
    max_upload_size: 15000000
    url_rewriting: mod_rewrite
    page_extension:
    query_var: page
    auto_alias_content: true
    locale:
    set_names: true
    timezone: Europe/London
    permissive_smarty: false


Php Information:

    phpversion: 5.6.13-0+deb8u1
    md5_function: On (True)
    json_function: On (True)
    gd_version: 2
    tempnam_function: On (True)
    magic_quotes_runtime: Off (False)
    E_STRICT: 0
    E_DEPRECATED: 0
    test_file_timedifference:
    test_db_timedifference:
    memory_limit: 128M
    max_execution_time: 120
    output_buffering: 4096
    file_uploads: On (True)
    post_max_size: 15M
    upload_max_filesize: 15M
    session_save_path: /var/lib/php5/sessions (1733)
    session_use_cookies: On (True)
    xml_function: On (True)
    xmlreader_class: On (True)


Performance Information:

    allow_browser_cache: Off (False)
    browser_cache_expiry: 60
    php_opcache: On (True)
    smarty_cache: Off (False)
    smarty_compilecheck: Off (False)
    smarty_cache_udt: Off (False)
    auto_clear_cache_age: On (True)

Server Information:

    Server Api: apache2handler
    Server Db Type: MySQL (mysqli)
    Server Db Version: 5.5.44
    Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
    Server Time Diff: No file system time difference found
In case it's relevant, System Info gives a notification for 'disable_functions in PHP' which flags: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority

Re: 2.0 email address with hyphen "invalid"

Posted: Tue Sep 22, 2015 6:19 pm
by calguy1000
it was actually an html entities issue. fixed in svn, thanks.

Re: 2.0 email address with hyphen "invalid"

Posted: Tue Sep 22, 2015 6:28 pm
by PinkElephant
Great work, thanks!