YouJoomla template removes special characters

A common issue that many YouJoomla template users encounter with their RSForm!Pro forms is special characters not being submitted (in the email fields, for example). This is being caused by the fact that all YouJoomla templates are stripping special characters, as well as the $_GET and $_POST variables.

There are two ways to fix this, depending on what template you are using:

  1. Open the /templates/YOUR_YOUJOOMLA_TEMPLATE/yjsgcore/yjsg_core.php file, look for the following code:

    $_GET = preg_replace("|([^\w\s\'])|i",'',$_GET);
    $_POST = preg_replace("|([^\w\s\'])|i",'',$_POST);

    and comment / remove it.

  2. If you don't find the above, open the /templates/YOUR_YOUJOOMLA_TEMPLATE/yjsgcore/yjsg_validate.php file, search for:

    function yjsg_validate_data (&$array)
        if (is_array($array))
            foreach ($array as $key => $value)
            $array = preg_replace("|([^\w\s\'])|i",'',$array);

    and replace it with:

    function yjsg_validate_data (&$array)

Was this article helpful?

Yes No
Sorry about that