This documentation page is for Quform version 1 and may not be applicable for Quform 2 click here to visit the documentation for Quform 2.
This guide applies to Quform version 1.3.6 or earlier
1 2 3 4 | $regexFilter = new iPhorm_Filter_Regex(); $regexFilter->setPattern($this->getPattern()); if ($value !== $regexFilter->filter($value)) { |
$regexFilter = new iPhorm_Filter_Regex(); $regexFilter->setPattern($this->getPattern()); if ($value !== $regexFilter->filter($value)) {
Replace them with this line:
1 | if (!preg_match($this->getPattern(), $value)) { |
if (!preg_match($this->getPattern(), $value)) {
Save the file and upload it via FTP to overwrite the original file.