Page 1 of 1

Link Detection minor error

Posted: Tue Jul 27, 2004 9:52 am
by singe
If I have the html

<a href="http://foo.com/">'foo bar'</a> then the link is not picked up, either for trackbacks or by the 'Links in this post' module.

If I modify the link to remove the ' then it works fine e.g.
<a href="http://foo.com/">foo bar</a>

Tis but a small error.

--
Serendipity rocks my world
http://singe.rucus.net/

Posted: Tue Jul 27, 2004 11:35 pm
by tomsommer
Hey, please file a bug on sourceforge :)

Posted: Wed Jul 28, 2004 9:25 am
by garvinhicking
Do you use the latest CVS snapshot? If you are referring to the 'links in this post' module, I guess so?

Our regular expression is this:

Code: Select all

preg_match_all('@<a[^>]+?href\s*=\s*["\']?([^\'" >]+?)[ \'"]?>([^<]*)</a>@i', $text, $matches)
and it does match links with those quotation marks in my test environment. So the current CVS give verbose output on which links it tries to autodetect. Your entered link is not mentioned in this output?

Sorry for wasting your time

Posted: Thu Jul 29, 2004 10:59 am
by singe
I can't seem to replicate it. That was rather dumb of me. I apologise for wasting your time.