@ sign being stripped from text field

davez

Member
Ran into an issue where the @ sign is stripped from text fields (I think by PHP8). Here's the work around. This is happening in a post processing form php plugin:

Strips @ sign from email address:
$release_email = $app->getInput()->get('wic_release___email');

Used placeholders to fix:
$release_email = '{wic_release___email}';

In case anyone runs into this.
 
->get() without a filter type will use "CMD" (Allows only case insensitive A-Z, underscores, periods and dashes).

$release_email = $app->getInput()->get('wic_release___email','your-default','STRING');
should do also (I didn't test).
 
I tried "raw" and "string" as the filter type and both those failed and stripped the @ sign. Banging my head before I remembered Fabrik's lovely placeholders.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top