Fix couple of occurences of missed DS constant usage

This commit is contained in:
DariusIII
2023-04-01 23:05:58 +02:00
parent 2bd4f78a11
commit e577141d87
5 changed files with 15 additions and 25 deletions
@@ -7,6 +7,7 @@ use Blacklight\NZBExport;
use Blacklight\NZBImport;
use Blacklight\Releases;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
class AdminNzbController extends BasePageController
{
@@ -39,8 +40,8 @@ class AdminNzbController extends BasePageController
// Get the path the user set in the browser if he put one.
$path = ($request->has('folder') ? $request->input('folder') : '');
if (substr($path, \strlen($path) - 1) !== DS) {
$path .= DS;
if (! Str::endsWith($path, '/')) {
$path .= '/';
}
// Get the files from the user specified path.