View Issue Details

IDProjectCategoryView StatusLast Update
0005564OXID eShop (all versions)4. ------ eShop Core -------public2013-12-10 17:14
Reporterjonny Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.8.1 / 5.1.1 
Target Version4.7.10 / 5.0.10Fixed in Version4.7.10 / 5.0.10 
Summary0005564: oxSepaValidator::isValidBIC($sBIC) only verifies substring of BIC
DescriptionIf $sBIC contains additional characters at the begin or the end, the function still returns true.

Example:
Correct BIC: COBADEHD055
isValidBIC() returns true for 123COBADEHD055ABC

My proposed Solution is to add ^ and $ to reg-exp:
return (bool)getStr()->preg_match("(^[a-zA-Z]{4}[a-zA-Z]{2}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$)", $sBIC);
TagsSEPA
ThemeBoth
BrowserAll
PHP Version5.4
Database Versionany

Activities

vaidas.matulevicius

2013-12-10 17:14

reporter   ~0009351

Reported issue was fixed.