incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Morgenegg <>
Subject Re: Question about percent signs in jspwiki links
Date Tue, 27 Dec 2011 16:05:00 GMT
> Hi Andrew,
>> From what I understand from the jspwiki faqs jspwiki.percentsign was added to
>> jspwiki in a previous release.  Was it removed in the release I am running?
> I couldn't find that property in the current 2.8 branch, so I guess this is
> outdated information. Where exactly did you find this hint?

I found this in a few places.  One being

I guess it was something that was removed.

>> Is there another way to put a percent sign in a link path?

What I have is attached files from users that have a space in the link.
When it is linking to a non image file it correctly encodes the space and
the link works.  When it is linking to an image the space is not encoded
properly so the image link does not work.  When I try to manually encode the
space with a %20 it encodes the % to %25 so I end up with %2520 which does
not work either.  I need a way to either keep the space or have jspwiki
encode it properly to %20 on image links like it does to links to other

Thank you,

> I'm not aware of any, but maybe others, who know the code better, do.
> However, I don't think it is a good idea to put percent signs in a link path.
> The reason is percent encoding of URIs (see RFC 3986 [1]), which uses the
> percent sign as a special character. The percent sign itself has to be encoded
> as %25.
> Regards
>  Florian
> [1]

View raw message