-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Environment var + routing schemes is broken with 3.3.7+ #24086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Oh, I found an easier reproducer: Just clone the reproducer, install vendors and run |
I think the issue might be related to the name of your env var: |
Indeed, If I rename my env var name, the issue is gone. But I don't know what to do with this issue though |
We should close IMHO, security is at risk here. |
What about adding a safe guard in the DotEnv component: If a var starts with |
Could be worth at least a note in some docblock/doc yes. |
👍 I let you do the PR ;) |
@lyrixx I'm closing as there is nothing to do on SYmfony side. Doc PR/issue welcomed. |
Hello.
Issue
We used to control the scheme of the URL with an environment variable (
HTTP_SCHEME
).It used to work fine until Symfony 3.3.7
Reproducer
We noticed a regression in the processing of environment variables and routing schemes.
I have created a producer here.
It's an extra commit on top of the standard edition with Symfony 3.3.*
I order to reproduce the issue you need a real web server (does not work
with PHP -S, nor bin/console server:run).
In the web server you have to add the following line in the PHP location:
edit: read the next comment
Results
(I removed useless headers )
With Symfony 3.3.6:
With Symfony 3.3.7, 3.3.8, and 3.3.*@dev:
The text was updated successfully, but these errors were encountered: