ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascript Stripping problem when error display set off

June 18, 2010 9:18am

Subscribe [2]
  • #1 / Jun 18, 2010 9:18am

    munawer

    1 posts

    Hi all,

      We need to hide the “PHP/SQL error messages generated” from our application and there is option to configure this in admin , here it is
    Admin > System Preferences > Output and Debugging Preferences

    Once it is set to “0” some java scripts in the pages are getting stripped , why this is happened and how we can configure this , Please help us..


    this is the stripped script when error display set on from admin:

    function isValidEmailAddress(emailAddress) {
    var pattern = new RegExp(/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z])$/);
    return pattern.test(emailAddress);
    }

    Actual content is something like this :

    function isValidEmailAddress(emailAddress) {
    var pattern = new RegExp(/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/);
    return pattern.test(emailAddress);
    }

    thanks,

    Munawer T

  • #2 / Jun 18, 2010 9:36am

    Ingmar

    29245 posts

    It’s recommended that you always show errors to Superadmins. Setting it to “1” means messages will only be shown to them.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases