- Posts: 2
- Thank you received: 0
Error: REG_EMPTY
15 years 8 months ago #1039
by ragob66
Error: REG_EMPTY was created by ragob66
Hi,
I use the DigiOz Guestbook Version 1.7.1 with some files of 1.7.2 (delete.php, delete_process.php, view.php, header.php and footer.php). After writing a guestbook entry and clicking "add to guestbook", I got an error above the confimation message:
Nevertheless the guestbook entry is added. What does this error mean?
Thanks for your help!
I use the DigiOz Guestbook Version 1.7.1 with some files of 1.7.2 (delete.php, delete_process.php, view.php, header.php and footer.php). After writing a guestbook entry and clicking "add to guestbook", I got an error above the confimation message:
Code:
Warning: eregi() [function.eregi]: REG_EMPTY in /web/cgi-bin/guestbook/functions.php on line 156
Nevertheless the guestbook entry is added. What does this error mean?
Thanks for your help!
Please Log in or Create an account to join the conversation.
15 years 8 months ago #1040
by Pete
DigiOz Webmaster
www.digioz.com
Replied by Pete on topic Error: REG_EMPTY
Hi,
That's just a warning, refering to the following lines of code:
It basically means you have specified a local domain for the Function to detect if form submitted from a domain other then yours (to prevent code injection). Look in the config.php file and you will see the relevant section:
Make sure this information is set correctly, or else disable this check by changing this line:
To this:
Pete
That's just a warning, refering to the following lines of code:
Code:
// Check agains list.
for ($x=0; $x < count($referers); $x++)
{
if (eregi ($referers[$x], $referer))
{
$found = true;
}
}
It basically means you have specified a local domain for the Function to detect if form submitted from a domain other then yours (to prevent code injection). Look in the config.php file and you will see the relevant section:
Code:
$referers = array (
'yourdomain.com', // Your domain name without WWW
'www.yourdomain.com', // Your domain name with WWW
'111.222.333.444'); // IP Address of your site
Make sure this information is set correctly, or else disable this check by changing this line:
Code:
$referersKey = 1;
To this:
Code:
$referersKey = 0;
Pete
DigiOz Webmaster
www.digioz.com
Please Log in or Create an account to join the conversation.
15 years 8 months ago #1042
by ragob66
Replied by ragob66 on topic Error: REG_EMPTY
Ah, thanks Pete.
I deleted the IP address. That was my fault. Everything's fine again.
I deleted the IP address. That was my fault. Everything's fine again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.119 seconds