Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc481dba

Browse files
committed
bug#52584 [WebProfilerBundle] Fix intercept external redirects (HeahDude)
This PR was squashed before being merged into the 6.3 branch.Discussion----------[WebProfilerBundle] Fix intercept external redirects| Q | A| ------------- | ---| Branch? | 6.3| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | ~| License | MITWhen intercepting a redirect to an external host the current output gives:> This request redirects to **http://current-host.orghttp://target-host.org/**With this PR, it fixes it too:> This request redirects to **http://target-host.org/**We could eventually get rid of the first part of the condition, WDYT?Commits-------4ffadec [WebProfilerBundle] Fix intercept external redirects
2 parents1c87e55 +4ffadec commitc481dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_redirect.html.twig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
<divclass="block-exception">
4040
<h1>Redirection Intercepted</h1>
4141

42-
{%setabsolute_url=hostinlocation?location:host~location %}
42+
{%setabsolute_url=absolute_url(location) %}
4343
<p>This request redirects to <strong>{{absolute_url }}</strong></p>
4444

45-
<p><aclass="btn"href="{{location }}">Follow redirect</a></p>
45+
<p><aclass="btn"href="{{absolute_url }}">Follow redirect</a></p>
4646

4747
<pclass="sf-redirection-help">
4848
The redirect was intercepted by the Symfony Web Debug toolbar to help debugging.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp