Bug #2855 [Ana]: New bug linking system converts already linked text
| From: | papercrane at reversefold dot com | Date: | Tue, 30 Nov 2004 04:37:54 +0000 |
| Subject: | Bug #2855 [Ana]: New bug linking system converts already linked text | ||
| References: | 1 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-3487@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=2855&edit=1
ID: 2855
User updated by: papercrane at reversefold dot com
Reported By: papercrane at reversefold dot com
Status: Analyzed
Type: Bug
Package: Bug System
Operating System: Irrelevant
PHP Version: Irrelevant
Assigned To: dufuz
New Comment:
I'm the one who talked him out of letting #xxxx link to a bug. It's far
too easy to type something like "Look at line #1234".
Also, I have a patch which would fix this, but it would take 5x the
regexes as it goes a preemptive replace, then puts things back
afterwards.
Previous Comments:
------------------------------------------------------------------------
[2004-11-29 23:33:19] helgi at trance dot is
I'm not much of a regex person but I'll look into this, also someone
removed the ability for #3454 to be turned into a link, at the moment
either bug or request has to be infront of it :/
------------------------------------------------------------------------
[2004-11-29 12:20:13] papercrane at reversefold dot com
Description:
------------
See bug 2841: http://pear.php.net/bugs/bug.php?id=2841
In one of my comments I put in a link to a patch. It had the phrase
bug2841 in it, which was turned into a link both within the href and in
the text of the link, causing bad HTML. The bug linking should happen
only when the text is not within another link.
Reproduce code:
---------------
Enter a link with bug2841 in a bug comment.
Expected result:
----------------
Link stays as-is.
Actual result:
--------------
Link has a new link embedded within the href.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=2855&edit=1