Link not handled correctly when | not present.
----------------------------------------------
Key: JSPWIKI-28
URL: https://issues.apache.org/jira/browse/JSPWIKI-28
Project: JSPWiki
Issue Type: Bug
Components: Core & storage
Affects Versions: 2.6.0
Environment: Tested on JSPWIKI 2.5.151-cvs (http://www.jspwiki.org/)
Reporter: Laurent Courtin
This link work : [Test | Wikipedia:Test]
This link doesn't work : [Wikipedia:Test]
I have corrected in my own CVS extraction in LinkParser.java :
# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on
respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: JSPWiki/src/com/ecyrd/jspwiki/parser/LinkParser.java
--- JSPWiki/src/com/ecyrd/jspwiki/parser/LinkParser.java Base (1.6)
+++ JSPWiki/src/com/ecyrd/jspwiki/parser/LinkParser.java Locally Modified
(Based On 1.6)
@@ -362,6 +362,7 @@
protected Link( String text ) throws ParseException
{
setText(text);
+ setReference(text);
}
/**
Regards,
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.