Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: unwanted conversion to e-mail address inside link markup #89

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

First reported by user ulidtko in issue 83. I'm opening a new issue to isolate 
the bug report from the feature request.

Reported by ulidtko, Nov 20 (3 days ago):

When I try to include XMPP URI in the markup like this:
[test xmpp:username@example.com?message]

I get the following html code generated:
<A HREF="mailto:username@example.com?message">username@example.com?message</A>

Original issue reported on code.google.com by aureliojargas@gmail.com on 24 Nov 2010 at 10:06

@GoogleCodeExporter
Copy link
Author

Not recognizing xmpp URLs is (still) not a bug, because it's not a support 
scheme. But the code txt2tags generated is bugged.

As an unrecognized URL, all the [test xmpp:] markup should be treated as plain 
text. Inside this "plain text", txt2tags should match an email. So this

[test xmpp:username@example.com?message]

should have been converted to:

[test xmpp:<A 
HREF="mailto:username@example.com?message">username@example.com?message</A>]

and not:

<A HREF="mailto:username@example.com?message">username@example.com?message</A>

Txt2tags forgot the "test" and xmpp: parts. This is a confirmed bug.

Original comment by aureliojargas@gmail.com on 24 Nov 2010 at 10:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant