mirror of
https://github.com/notf0und/SGS
synced 2026-07-17 18:21:06 +00:00
### Changes
Fixes #3: Error on DBI when files or folders contains special characters. ### Additional changes * Added unit and feature tests * Fix file size display * Run tests on CI/CD * Publish docker image on release
This commit is contained in:
parent
15b9c17b99
commit
0993bfa666
@@ -35,7 +35,7 @@ class IndexController extends Controller
|
||||
private function getRequestPath(Request $request): ?string
|
||||
{
|
||||
$path = $request->route('path');
|
||||
return $path ? urldecode($path) : null;
|
||||
return $path ? rawurldecode($path) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -132,7 +132,7 @@ class IndexController extends Controller
|
||||
private function buildDirectoryListingHtml(Collection $directories, Collection $files, string $currentPath, string $baseUrl, bool $isDBI): string
|
||||
{
|
||||
$displayPath = $currentPath
|
||||
? '/games/' . urldecode($currentPath) . '/'
|
||||
? '/games/' . rawurldecode($currentPath) . '/'
|
||||
: '/games/';
|
||||
|
||||
return view('dbi.directory-listing', [
|
||||
|
||||
Reference in New Issue
Block a user