YouJoomla template removes special characters


Tutorials - Tutorials

User Rating: / 0
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:

      // XSS PROTECTION $_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) yjsg_validate_data($array[$key]); else $array = preg_replace("|([^\w\s\'])|i",'',$array); }

    and replace it with:

    function yjsg_validate_data (&$array) { }

About Us

Royal Developer Top three Web Designing and Web Development Company in Dehradun, Uttarakhand, India. Royal Developer Best SEO Company in Dehradun takes pride in its philosophy of 'Employee First' which empowers to create a real value for the customers. Royal Developer can offer Best and cheap Website Development Software Development & SEO Services. We are the Best service Provider of SEO, SEM, SMO Services Company in Uttarakhand. Web Designing Course in Dehradun, Web Designing Classes in Dehradun, Web Design Training Institute in Dehradun, Web designing institute in dehradun, Best institute for web designing in dehradun, Web development training in dehradun, Web development course in dehradun, Web Designing Training in Dehradun.


- Contact Information - 

Add : RDIT Services Pvt Ltd, 3rd Floor, RGM Plaza, Above Chandu Canteen,
          23 Chakrata Road, Dehradun - 248001, Uttarakhand, India

Email : 


 : +91 8171200108, +91 8979462451,
                                  +91 7895753921

Quick Enquiry Form

Enter your full name

Enter your valid email address

Enter your correct mobile number

Invalid Input

Your Message
Invalid Input

Enter Code
Enter Code
  RefreshInvalid Input


You are here: Home Tutorials YouJoomla template removes special characters