mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Cast Category constants to string in Blacklight/http/API.php to prevent strpos errors
This commit is contained in:
@@ -101,8 +101,8 @@ class API extends Capabilities
|
||||
if (request()->has('cat')) {
|
||||
$categoryIDs = urldecode(request()->input('cat'));
|
||||
// Append Web-DL category ID if HD present for SickBeard / Sonarr compatibility.
|
||||
if (strpos($categoryIDs, Category::TV_HD) !== false &&
|
||||
strpos($categoryIDs, Category::TV_WEBDL) === false) {
|
||||
if (strpos($categoryIDs, (string) Category::TV_HD) !== false &&
|
||||
strpos($categoryIDs, (string) Category::TV_WEBDL) === false) {
|
||||
$categoryIDs .= (','.Category::TV_WEBDL);
|
||||
}
|
||||
$categoryID = explode(',', $categoryIDs);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2019-02-28 DariusIII
|
||||
* Fix: Cast Category constants to string in Blacklight/http/API.php to prevent strpos errors
|
||||
* Chg: Update laravel/framework to 5.8.2, use forks of packages used untill they add support for laravel 5.8
|
||||
* Chg: Update spatie/laravel-directory-cleanup (1.2.3 => 1.2.4)
|
||||
* Chg: Update voku/simple_html_dom (4.2.1 => 4.3.1)
|
||||
|
||||
Reference in New Issue
Block a user