Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpKernel] removeAbsolutePathsFromContainer bug when app installed under /app #10977

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

Closed
artursvonda opened this issue May 23, 2014 · 0 comments

Comments

@artursvonda
Copy link
Contributor

Before dumping container, the paths are replaced in Kernel::removeAbsolutePathsFromContainer method. When the files are stored under /app (I use that as mounting point for shared folder on my VM), the paths get incorrectly replaced with '/app'.__DIR __. Probably because regex assumed there'd be only one /app in the path.

artursvonda added a commit to artursvonda/symfony that referenced this issue May 23, 2014
artursvonda added a commit to artursvonda/symfony that referenced this issue May 23, 2014
fabpot pushed a commit that referenced this issue May 26, 2014
fabpot added a commit that referenced this issue May 26, 2014
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #10979).

Discussion
----------

Make rootPath part of regex greedy

- Fixes #10977
- Also replaced `isset() && true` with simple `!empty()` which is equivalent.

Commits
-------

31da839 Make rootPath part of regex greedy
@fabpot fabpot closed this as completed May 26, 2014
fabpot pushed a commit to fabpot/symfony that referenced this issue May 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants