mirror of https://github.com/MISP/MISP
Fix to a bug in the financial tool's validation router
- it didn't use the validation type -> validation method array to call the validation function - resulted in CC validation not being called as expectedpull/762/head
parent
db359170f6
commit
c71c8f968d
|
@ -96,7 +96,7 @@ class FinancialTool {
|
|||
'iban' => 'IBAN',
|
||||
'btc' => 'BTC',
|
||||
);
|
||||
if (in_array($type, array_keys($validationRoutes))) return $this->{'validate' . strtoupper($type)}($value);
|
||||
if (in_array($type, array_keys($validationRoutes))) return $this->{'validate' . strtoupper($validationRoutes[$type])}($value);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue