QEmailTextBox Demo throwing an error
Hello People,
I'm helping with a Qcubed project at the moment, it has been a while so I'm getting back into the groove :-D
Was browsing the Plugins and received and error on the QEmailTextBox: Validation of Email Addresses page.
Function eregi() is deprecated
http://examples.qcu.be/assets/plugins/QEmailTextBox/example/emailtextbox...
This maybe a silly question, when the error came up, it was in the standard helpful error message window, is this window giving away to much info to potential site hackers?
If so is there a clean way I can turn off all that helpful info on my production site?
Thank you,
=-)

Hi Jandal,
I think there is a way to hide the error to not show the call stack.
Exist this line in the "\includes\configuration\configuration.inc.php" (from 234 to 237 line nÂș).
<?php
// To enable the display of "Friendly" error pages and messages, define them here (path MUST be relative from the DOCROOT)
//define('ERROR_FRIENDLY_PAGE_PATH', __PHP_ASSETS__ . '/friendly_error_page.php');
//define('ERROR_FRIENDLY_AJAX_MESSAGE', 'Oops! An error has occurred.\r\n\r\nThe error was logged, and we will take a look into this right away.');
?>
Just uncomment or change the link to your custom error page. The default installation of QCubed comes in "Developer" mode, so it shows everything.
Hope this help you.
Regards,
JMI
yeah that is the solution.
Moreover, you can search the internet for the expressions to check the email address. :)