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
When changing the lines
/** @var DirectoryIterator $file */ foreach (new DirectoryIterator($curPath) as $file) {
with
/** @var DirectoryIterator $file */ $di = new RecursiveDirectoryIterator($path); foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
FileLister iterates recursivly into the subdirectories of a given path.
Changed $filePath = $relPath.(!empty($relPath) ? '/' : with $filePath = str_replace($path, '', $filePath);
$filePath = $relPath.(!empty($relPath) ? '/' :
$filePath = str_replace($path, '', $filePath);
and the download links working.
I'm not a developer and I think this is a hack without knowing if I produced a security risk or other issues with that change...
Would be great if this functionality is integrated into FileLister.
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When changing the lines
with
FileLister iterates recursivly into the subdirectories of a given path.
Changed
$filePath = $relPath.(!empty($relPath) ? '/' :
with
$filePath = str_replace($path, '', $filePath);
and the download links working.
I'm not a developer and I think this is a hack without knowing if I produced a security risk or other issues with that change...
Would be great if this functionality is integrated into FileLister.
Thanks.
The text was updated successfully, but these errors were encountered: