Hi all,
As you know you can pass an object directly to the URL helpers when
using object routes:
<?php echo url_for('my_route', $my_object) ?>
Now obviously url_for(), and thus sfRoute::generate() retrieves an
instance of sfOutputEscaperObjectDecorator, which can lead to several
problems.
One solution to this problem is to always manually access
$sf_data->get('my_object', ESC_RAW), but this is very uncomfortable.
The other solution is to automatically unescape objects and arrays
passed to the route in the URL helpers. I think this solution is very
nice and doesn't bear any problems, because the URL parameters are
urlencoded anyway.
Do you see any problems with this solution?
Bernhard
--
Software Architect & Engineer
Blog: http://webmozarts.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---