[ 
https://issues.apache.org/jira/browse/WICKET-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-2067.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-RC2
         Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4-RC2
>
>   Original Estimate: 0.03h
>  Remaining Estimate: 0.03h
>
> 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.

Reply via email to