Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
services@ourgig.net
#5
What version of GetSimple are you using?

The error you’re talking about should only be given when the browser defines a referrer that doesn’t match edit.php. (If no referrer is specified it will ignore this check.)

This is the code used, straight from the SVN:
Code:
// check form referrer - needs siteurl and edit.php in it.
if (isset($_SERVER['HTTP_REFERER'])) {
        if ( !(strpos(str_replace('http://www.', '', $SITEURL), $_SERVER['HTTP_REFERER']) === false) || !(strpos("edit.php", $_SERVER['HTTP_REFERER']) === false)) {
                echo "<b>Invalid Referer</b><br />-------<br />";
                echo 'Invalid Referer: ' . htmlentities($_SERVER['HTTP_REFERER'], ENT_QUOTES);
                die;
        }
}
As you can see, some kind of debug information should be given when this error is displayed. It should put the invalid referrer on the page. Could you tell us what data it displays there, since it might hold the key to what’s going wrong.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
services@ourgig.net - by ourgig - 2010-12-03, 01:30:03
services@ourgig.net - by yojoe - 2010-12-03, 08:32:33
services@ourgig.net - by ourgig - 2010-12-03, 09:02:35
services@ourgig.net - by yojoe - 2010-12-03, 09:29:07
services@ourgig.net - by Zegnåt - 2010-12-04, 22:17:29
services@ourgig.net - by ourgig - 2011-03-28, 05:03:56
services@ourgig.net - by Connie - 2011-03-28, 16:10:36
services@ourgig.net - by ourgig - 2011-03-28, 21:56:27
services@ourgig.net - by ccagle8 - 2011-03-28, 22:11:37
services@ourgig.net - by ourgig - 2011-03-28, 22:15:47
services@ourgig.net - by yojoe - 2011-03-29, 00:02:00
services@ourgig.net - by ourgig - 2011-03-29, 01:25:34



Users browsing this thread: 1 Guest(s)