Bug #52182

& vs. &

Added by mario chiari over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2013-09-23
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

see http://www.htmlhelp.com/tools/validator/problems.html#amp
It seems that Fluid renders

<f:uri.action ... arguments="{obj1:value1, obj2:value2}"></f:uri.action>

as
obj1=value1&obj2=value2

instead of
obj1=value1&amp;obj2=value2

#1

Updated by Bastian Waidelich over 7 years ago

  • Category set to ViewHelpers
  • Status changed from New to Accepted
  • Assignee set to Bastian Waidelich
#2

Updated by Bastian Waidelich over 7 years ago

  • Status changed from Accepted to Needs Feedback

Hi Mario,

thanks for the report.
After thinking about this again I don't think this is a bug in fact:

<f:link.action ../>

already correctly encodes the href attribute converting & to &amp and such.
That

{f:uri.action(..)}


returns the unmodified URI is actually intended as it only needs to be encoded for (X)HTML output.

If you need the encoded URI you should use the format.urlencode ViewHelper like:

{f:uri.action(..) -> f:format.urlencode()}

#3

Updated by Bastian Waidelich over 7 years ago

  • Status changed from Needs Feedback to Rejected

Closing as agreed to via IRC

Also available in: Atom PDF