SmartLinkLabel is not so smart
------------------------------
Key: WICKET-2067
URL: https://issues.apache.org/jira/browse/WICKET-2067
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.4-RC1
Environment: JDK 1.6.0_11 x64 version
Reporter: Major Peter
Priority: Minor
The SmartLinkLabel doesn't care with tilde (~) character, so if i have a link
like this: http://localhost/~something than only the http://localhost/ will be
a link, and the rest of it won't.
The source of the problem is very likely in DefaultLinkParser.java:
/** URL pattern */
private static final String urlPattern =
"([a-zA-Z]+://[\\w\\.\\-\\:\\/]+)[\\w\\.:\\-/?&=%]*";
It just needs to add ~ char to the regexp.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.