Skip to content

Commit e1b7e46

Browse files
committed
minor symfony#15650 [FrameworkBundle] Fix templating.helper.code.file_link_format when defined by ini setting (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] Fix templating.helper.code.file_link_format when defined by ini setting | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Not bug fix because the fix it fixes has not yet been released in any taggued version, but still a fix. Commits ------- de7d4a7 [FrameworkBundle] Fix templating.helper.code.file_link_format when defined by ini setting
2 parents 05b54fe + de7d4a7 commit e1b7e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private function registerTemplatingConfiguration(array $config, $ide, ContainerB
364364
'sublime' => 'subl://open?url=file://%%f&line=%%l',
365365
);
366366

367-
$container->setParameter('templating.helper.code.file_link_format', ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') ?: (isset($links[$ide]) ? $links[$ide] : $ide));
367+
$container->setParameter('templating.helper.code.file_link_format', str_replace('%', '%%', ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: (isset($links[$ide]) ? $links[$ide] : $ide));
368368
}
369369
$container->setParameter('templating.helper.form.resources', $config['form']['resources']);
370370
$container->setParameter('fragment.renderer.hinclude.global_template', $config['hinclude_default_template']);

0 commit comments

Comments
 (0)