Log in
Model

NoSpecialCharsInString

Magento\Inventory\Model\Validators\NoSpecialCharsInString

What it does

This validator class checks if a string contains special character patterns that could indicate potential template injection or security vulnerabilities.

Developers use this in the Inventory module to validate user input for fields like SKUs, source codes, or stock identifiers to prevent malicious template syntax from being stored in the database.

Public Methods

  • execute()