It's prohibited by the "raw HTML" formatter policy (an obvious misnomer). Only 
http/https and mailto protocols are currently allowed in href attributes.

You need a plugin that is more lenient with what is allowed. It should be 
trivial to write one yourself (basically [1] without the line calling the 
sanitize method should do it), but it looks like the Pegdown Formatter Plugin 
(keep 'SUPPRESS_ALL_HTML' unchecked) works as well -- but it will introduce 
Markdown formatting as well.

Obviously, all of this (unless implemented really carefully, maybe) will reduce 
security.

1: 
https://github.com/jenkinsci/antisamy-markup-formatter-plugin/blob/master/src/main/java/hudson/markup/RawHtmlMarkupFormatter.java

On 05.03.2014, at 05:40, mpc8250 <mpc8...@gmail.com> wrote:

> Hi All
> 
> We try to put some description on Jenkins page and place a href link using 
> ftp.
> It appears that Jenkins top/system page refuses to set/accept a simple link 
> like this.
> It returns as a text "test".
> 
> <a href="ftp://hostname.test.com/some/path>test</a>
> 
> Hudson UI has no issue with this syntax.
> How can we restore this function in Jenkins ?
> 
> Thanks
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to