1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Issue with title conversion and email address in url path

Discussion in 'Resolved Bug Reports' started by rellect, Jul 17, 2015.

  1. rellect

    rellect Well-Known Member

    Posting a link that contains email address in the path will incorrectly add EMAIL bbcodes to the url.

    I created a path to demonstrate the issue.
    Post the following url
    The result is
    <a href="http://rellect.com/[email]k@k.com[/email]" target="_blank" class="externalLink ProxyLink" data-proxy-href="proxy.php?link=http%3A%2F%2Frellect.com%2F%5Bemail%5Dk%40k.com%5B%2Femail%5D&amp;hash=5f8b4eeb31273e411ecad3c40d7deb17" rel="nofollow">rellect</a>
    And if you wonder why someone would post such a link, it sometimes used for search
  2. Chris D

    Chris D XenForo Developer Staff Member

  3. rellect

    rellect Well-Known Member

    As far as I know, @ is allowed unescaped. I could be wrong though.
  4. Chris D

    Chris D XenForo Developer Staff Member

    It might be something we can workaround anyway, we'd have to have a look. But I believe it should be escaped. Problem is, browsers may display it unencoded and therefore users may copy paste it unencoded hence exasperating the problem.
    rellect likes this.
  5. Mike

    Mike XenForo Developer Staff Member

    I've tightened up the auto detection of emails to try to eliminate this. Essentially, an email will only be detected if there's a space or a form of quote before it. This eliminates ambiguity (for example, user:pass@example.com could actually be a URI rather than an email) and generally shouldn't prevent autolinking when expected (when typed with "normal" spacing).
    Chris D likes this.

Share This Page