From 40a855c511fdf6f6bf7ded3c0386da9f123bc7e7 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 29 Mar 2023 01:56:55 +0200 Subject: [PATCH] Fix nzb-import path check --- misc/testing/nzb-import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/testing/nzb-import.php b/misc/testing/nzb-import.php index df6cf8162..0b399c2fd 100644 --- a/misc/testing/nzb-import.php +++ b/misc/testing/nzb-import.php @@ -44,8 +44,8 @@ if ($argv[5] < 0) { $path = $argv[1]; // Check if path ends with dir separator. -if (substr($path, -1) !== DS) { - $path .= DS; +if (! Str::endsWith($path, '/')) { + $path .= '/'; } $files = new \RegexIterator(