WordPress.org

Ready to get started?Download WordPress

Forums

Gravatar Signup Encouragement
@ in URL issue (firefox and chrome) (2 posts)

  1. DarkWolf
    Member
    Posted 3 years ago #

    Just a small issue with @ in url.
    Link to signup in gravatar is like this:
    http://gravatar.com/site/signup/name@domain.com
    and when i click on it (with chrome and firefox - is ok with IE) it will be converted to: http://it.gravatar.com/site/signup/namedomain.com

    http://wordpress.org/extend/plugins/gravatar-signup-encouragement/

    Ok, this problem seems to be caused by a redirect with localbrowser language in gravatar subdomain.
    I've fixed with this:

    // check if it is really locale.gravatar.com
    	if (preg_match('|^[A-Z_%+-]+.gravatar+.com|i', $gse_locale_url)) {
    		$gse_locale_url = $gse_locale_url; } else {
    		$gse_locale_url = 'en.gravatar.com';
    	}

    to this:

    /*/ check if it is really locale.gravatar.com
    	if (preg_match('|^[A-Z_%+-]+.gravatar+.com|i', $gse_locale_url)) {
    		$gse_locale_url = $gse_locale_url; } else {
    		$gse_locale_url = 'en.gravatar.com';
    	}*/
    		$browserlang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
    		$gse_locale_url = ''.$browserlang.'.gravatar.com';

    And now seems to work fine ;)

  2. Milan Dinić
    Member
    Plugin Author

    Posted 2 years ago #

    I believe that this issue is solved in version 3.0.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic