Löschen/Deaktivierung
This commit is contained in:
@@ -2242,12 +2242,12 @@ class ApiKernel
|
||||
if ($hasHtmlAttrs) return true;
|
||||
if (preg_match($jsonTypePattern, $html) && preg_match($jsonIdPattern, $html)) return true;
|
||||
|
||||
$libIdPattern = '/data-lib-id\s*=\s*(["\"])' . $id . '\1/i';
|
||||
$libIdPattern = '/(?:data-)?lib-id\s*=\s*(["\"])' . $id . '\1/i';
|
||||
if (preg_match($libIdPattern, $html)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$jsonLibIdPattern = '/"data-lib-id"\s*:\s*("?)(?:' . $id . ')\1/i';
|
||||
$jsonLibIdPattern = '/"(?:data-)?lib-id"\s*:\s*("?)(?:' . $id . ')\1/i';
|
||||
if (preg_match($jsonLibIdPattern, $html)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user