Development

#1775 (Output escaping breaks $sf_params->get () with two arguments in the View)

You must first sign up to be able to contribute.

Ticket #1775 (new defect)

Opened 1 year ago

Last modified 1 year ago

Output escaping breaks $sf_params->get () with two arguments in the View

Reported by: Andrejs.Verza Assigned to: fabien
Priority: major Milestone:
Component: view Version: 1.0.2
Keywords: $sf_params, sfOutputEscaper Cc:
Qualification:

Description

Setting

escaping_strategy: both escaping_method: ESC_ENTITIES

... breaks $sf_params->get ('param', 'default') calls whether param is set or not in the request. However, $sf_params->get ('param') without specifying the default value stil works fine.

Change History

06/06/07 16:13:39 changed by Magnus.Nordlander

I can confirm that this still exists in Symfony 1.0.3 and offer a kind of workaround.

Using $sf_data->getRaw('sf_params')->get('param', 'default') works, but if one uses this one must of course note that the output will not be escaped.