« Previous | Next » 

Revision b10d6f6b


Added by Robert Lemke over 8 years ago

[!!!][BUGFIX] urlencode viewhelper accepts objects with __toString

This fixes a problem with the urlencode view helper. If you pass it an
object with _toString() method – for example an URI object – it is
returned as is. Now the view helper additionally checks for a
_toString() method.

This change is breaking if you rely on the viewhelper to return
values that are not a string or an object with __toString.
The viewhelper will now throw an exception in this case.

Change-Id: Ibf53dab49b47f8a73870dc53b8e6380b38cd01ec
Fixes: #44889
Releases: 2.0, master

  • added
  • modified
  • copied
  • renamed
  • deleted