We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently im having a problem with the UrlBuilder.
UrlBuilder->getUrl uses parse_url and it return the wrong path for my files if they have a special character on the name.
For example Se#ection_188.png becomes '/path/Se' and it causes a failure.
To fix this i did something like this just before the parse_url:
$pathinfo = pathinfo($path); $encodedFileName = urlencode($pathinfo['basename']); $pathinfo['dirname'] = implode('/', array_map(function ($element) { return urlencode($element); }, explode('/', $pathinfo['dirname']))); $path = $pathinfo['dirname'] . '/' . $encodedFileName;
And then decoded the path inside the request controller.
Is there a way to achieve this without having to edit the the UrlBuilder directly?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently im having a problem with the UrlBuilder.
UrlBuilder->getUrl uses parse_url and it return the wrong path for my files if they have a special character on the name.
For example Se#ection_188.png becomes '/path/Se' and it causes a failure.
To fix this i did something like this just before the parse_url:
And then decoded the path inside the request controller.
Is there a way to achieve this without having to edit the the UrlBuilder directly?
The text was updated successfully, but these errors were encountered: