We need to encode a path into a Elfinder specific hash. So we tried to use the FM\ElfinderBundle\Loader\ElFinderLoader:: encode($path) to get the hash for the current path. But the result was always empty.
Steps To Reproduce:
In a properly configured project create a controller like this:
Issue Type:
Please pick one and delete the rest:
Bundle Version:
Master
Summary:
We need to encode a path into a Elfinder specific hash. So we tried to use the
FM\ElfinderBundle\Loader\ElFinderLoader:: encode($path)
to get the hash for the current path. But the result was always empty.Steps To Reproduce:
In a properly configured project create a controller like this:
Open your browser with the url containing the path in the query string.
Expected Results:
The response should contain the hash for the given path.
Actual Results:
The response always is an empty string.
Possible solution
https://github.com/helios-ag/FMElfinderBundle/blob/52359fbe5560dae93f021ed2e750a2f812bdb335/src/Loader/ElFinderLoader.php#L120
change into:
The getPath-method converts a hash into a path. The getHash-method converts a path into a hash!