diff --git a/classes/class.tx_linkvalidator_processor.php b/classes/class.tx_linkvalidator_processor.php index a9ebf05..a1e27e7 100644 --- a/classes/class.tx_linkvalidator_processor.php +++ b/classes/class.tx_linkvalidator_processor.php @@ -288,6 +288,11 @@ class tx_linkvalidator_Processor { foreach ($this->hookObjectsArr as $keyArr => $hookObj) { $type = $hookObj->fetchType($r, $type, $keyArr); + // Store the type that was found + // This prevents abusive overriding by internal validator + if (!empty($type)) { + $r['type'] = $type; + } } $results[$type][$table . ':' . $field . ':' . $idRecord . ':' . $r["tokenID"]]["substr"] = $r; $results[$type][$table . ':' . $field . ':' . $idRecord . ':' . $r["tokenID"]]["row"] = $record;