n0nstart
n0nstart
Ok, I managed to deal with this, creating a custom module and block order execution if firstname or lastname contain characters like "}","{", validateName($order->getCustomerFirstname()); $this->validateName($order->getCustomerLastname()); // Log the source of...
You can add and firstname and lastname validaton in your plugin too. Yea the misunderstanding is presented - **They expoiting the platform trough these 2 fields, not the shipping or...
@Max-Leps you can update the code of **app/code/{Vendor}/{Your Module}/Plugin/OrderSourceLogger.php;** with: ```php logger = $logger; } private function getClientIp() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { return $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['HTTP_X_FORWARDED_FOR'];...
@ssx Yes my bad, you are right. Just updated the code to validate the lenght only for firstname and lastname
@RotzGott you can include them in the regular expression used in the preg_match function: `if (preg_match('/[{}%\/\\\\\[\]]/', $input)) {` Now validation is for: - {, }, , %. - / and...
@ssx @RotzGott @Max-Leps Yea, It's a great idea everything to be validated. Just finished the module. Now every field is protected. https://github.com/bafmaamy/Magento-FieldValidator Tested on 2.4.6 @in-session I really want to...
@Max-Leps yes, forgot about state/region validation. Added in AddressSavePlugin.php : ```php // Validate State/Region $region = $address->getRegion(); if ($region) { $this->validateInput($region->getRegion(), 'State/Region Name'); $this->validateInput($region->getRegionCode(), 'State/Region Code'); $this->validateInput($region->getRegionId(), 'State/Region ID'); }...
@Max-Leps There is a possibility your payment module to use same kind of validation for the region field or you have enabled both modules together - the WaPoNe's and this...
gj, but still "{" allowed in the Region field and Company field.