Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've found this code in the plugin (line 1433 and onwards in the latest wordpress plugin version):</p> <pre><code>// check posted input for email injection attempts // Check for these common exploits // if you edit any of these do not break the syntax of the regex $input_expl = "/(content-type|mime-version|content-transfer-encoding|to:|bcc:|cc:|document.cookie|document.write|onmouse|onkey|onclick|onload)/i"; // Loop through each POST'ed value and test if it contains one of the exploits fromn $input_expl: foreach($_POST as $k =&gt; $v){ if (is_string($v)){ $v = strtolower($v); $v = str_replace('donkey','',$v); // fixes invalid input with "donkey" in string $v = str_replace('monkey','',$v); // fixes invalid input with "monkey" in string if( preg_match($input_expl, $v) ){ return __('Illegal characters in POST. Possible email injection attempt', 'si-contact-form'); } } } </code></pre> <p>The error occurs when at least one of the posted fields contain an 'invalid' value anywhere in the string. The most likely candidates that trigger this error on email addresses would seem to be onmouse, onkey, onclick, and onload. (Note that the words 'donkey' and 'monkey' are allowed.) You should check the value of <code>$v</code> just before the return statement so you can determine which section causes the error, then you can decide how to solve the problem.</p> <pre><code> if( preg_match($input_expl, $v) ){ var_dump($v); exit(); // &lt;-- add this for testing return __('Illegal characters in POST. Possible email injection attempt', 'si-contact-form'); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload