COnstant error. Due to page refs?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Dopple

COnstant error. Due to page refs?

Post by Dopple »

Code: Select all

$page = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
   if (!ereg($page, $_SERVER['HTTP_REFERER']))
      $errors[] = "Invalid referer\n";
This code is to make sure that the info from my form is posted from my form. The only problem is it's constantly throwing up the invalid referer error. I'm assuming this is to do with the way the php code is actually embedded in a user difined tag and called for? If anyone could suggest an alternative I would be very greatful.
:)
Locked

Return to “CMSMS Core”