asked on
ASKER
ASKER
ASKER
ASKER
Whilst it is hard to demonstrate this particular finding as there is no visual response from the webserver, the request and response headers have been included which show the request that was made and also includes the time stamp.
ASKER
ASKER
ASKER
Looking back at your previous post, and before I grab it, were you referring to seeing how the your-name field appears in the admin.php file for the Contact 7 form or was there somewhere else I needed to look?
ASKER
ASKER
ASKER
add_filter('wpcf7_validate_text', 'your_validation_filter_func', 999, 2);
add_filter('wpcf7_validate_text*', 'your_validation_filter_func', 999, 2);
function your_validation_filter_func($result, $tag) {
$type = $tag['type'];
$name = $tag['name'];
if ('your-name' == $name) {
$the_value = $_POST[$name];
$myresult = substr($the_value, 0, 4);
if ($myresult == "Iain") {
$result['valid'] = true;
} else {
$result->invalidate($tag, "Test validation for text field");
}
}
return $result;
}
ASKER
ASKER
IIS is Internet Information Services, the web server included with Windows Server operating systems. All current versions are built on a modular architecture; modules can be added or removed individually so that those required for specific functionality are installed. The full installation of IIS includes HTTP, security, content, compression, caching, logging and diagnostics.
TRUSTED BY
- Have you enabled the "Spam Filtering with Akismet" functionality. This checks if the content of the field is spam or not. I imagine this functionality includes doing a lookup because it talks with an API. A quote from Contact 7's docs about this functionality:
Link: https://contactform7.com/spam-filtering-with-akismet/
Can you post the configuration of the "Your Name" field from the Admin section of the Contact 7 manager?
It sort of sounds like the text field is defined incorrectly in the Contact 7 plugin.
Dan