DescriptionWhen using a PluginEnvironment that allows URIs without rewriting,
the cajoler will turn this:
<a href="mailto:a@b"></a>
<a href="http://a.b/c;_d=e"></a>
into this:
<a href="mailto:/a%40b"></a>
<a href="http://a.b/c%3b%5fd%3de"></a>
which doesn't mean the same thing at all.
What's happening is the TemplateCompiler gets
a URI String from the PluginEnvironment,
then runs that String through normalizeUri,
which is a little buggy and mangles the URI
I don't see any particular reason to mistrust the
string returned by the PluginEnvironment.
So rather than trying to fix normalizeUri,
I've removed the call to normalizeUri.
I've also fixed the error message for invalid uris.
Patch Set 1 #
Total comments: 1
Patch Set 2 : uri normalization breaks several uris #Patch Set 3 : uri normalization breaks several uris #
Total comments: 1
MessagesTotal messages: 10
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||