Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / security_review / src / Checks / Field.php.rej
index 94670501264fbbb5d86fd1e4aa852e8f94307521..a2413efafa76c736c2fc0a634387d1b2d82779e9 100644 (file)
@@ -1,5 +1,14 @@
 --- src/Checks/Field.php
 +++ src/Checks/Field.php
+@@ -86,7 +86,7 @@ class Field extends Check {
+         /** @var TypedDataInterface $property */
+         $value = $property->getValue();
+         if (is_string($value)) {
+-          $field_name = $property->getDataDefinition()->getLabel();
++          $field_name = $item->getFieldDefinition()->getLabel();
+           foreach ($tags as $vulnerability => $tag) {
+             if (strpos($value, '<' . $tag) !== FALSE) {
+               // Vulnerability found.
 @@ -138,9 +138,9 @@ class Field extends Check {
            ->load($entity_id);