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

WebAPI::autolink incorrectly converts links. #6

Closed
Joungkyun opened this Issue Feb 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Joungkyun
Copy link
Member

Joungkyun commented Feb 5, 2019

Description:

If there is a tag in the string to be changed, the WebAPI::autolink api will ignore the address of the original a tag.

Issued code:

$str = "I am? <a\n href=\"http://u.com/u\">http://o.org/a.php?a=http://a.txt</a> here";
WebAPI::autolink ($str);
echo "{$str}\n";

Expected:

I am? <a href="http://u.com/u" target="_blank">http://o.org/a.php?a=http://a.txt</a> here

Acutally:

I am? <a href="http://o.org/a.php?a=http://a.txt" target="_blank">http://o.org/a.php?a=http://a.txt</a> here

@Joungkyun Joungkyun added this to the 1.0.16 milestone Feb 5, 2019

@Joungkyun Joungkyun self-assigned this Feb 5, 2019

@Joungkyun Joungkyun closed this in b5243e5 Feb 5, 2019

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