View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005564 | OXID eShop (all versions) | 4. ------ eShop Core ------- | public | 2013-12-08 23:49 | 2013-12-10 17:14 |
Reporter | jonny | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.1 / 5.1.1 | ||||
Target Version | 4.7.10 / 5.0.10 | Fixed in Version | 4.7.10 / 5.0.10 | ||
Summary | 0005564: oxSepaValidator::isValidBIC($sBIC) only verifies substring of BIC | ||||
Description | If $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); | ||||
Tags | SEPA | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | 5.4 | ||||
Database Version | any | ||||