Löschen/Deaktiveunrg
This commit is contained in:
@@ -2248,7 +2248,9 @@ class ApiKernel
|
||||
if (!$libKinds) return true;
|
||||
if (preg_match($kindPattern, $html, $m)) {
|
||||
$kind = strtolower(trim((string)($m[2] ?? '')));
|
||||
if ($kind !== '' && in_array($kind, $libKinds, true)) return true;
|
||||
if ($kind === '' || in_array($kind, $libKinds, true)) return true;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2258,7 +2260,9 @@ class ApiKernel
|
||||
if (!$libKinds) return true;
|
||||
if (preg_match($jsonLibKindPattern, $html, $m)) {
|
||||
$kind = strtolower(trim((string)($m[1] ?? '')));
|
||||
if ($kind !== '' && in_array($kind, $libKinds, true)) return true;
|
||||
if ($kind === '' || in_array($kind, $libKinds, true)) return true;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user