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(