i've just installed the nightly build to test if this issue is fixed with it. no luck but found this thread:
http://board.s9y.org/viewtopic.php?t=4755
my code looks like this now:
Code: Select all
function serendipity_checkXSRF() {
global $serendipity;
return false;
but I still receive:
Code: Select all
Your browser did not sent a valid HTTP-Referrer string. This may have either been caused by a misconfigured browser/proxy or by a Cross Site Request Forgery (XSRF) aimed at you. The action you requested could not be completed.
very strange do you have any ideas?
you said that browser may not send referrer string.
so i did simple test:
created 2 files - 1 html 1 php
html:
Code: Select all
This a link to <a href="referrer.php">Test Referrer page</a>.
php:
Code: Select all
<?php
$ref=@$HTTP_REFERER;
echo "<font face='Verdana' size='3'><b>Referrer of this page = $ref </b>";
?>
I launch html file in browser then I click the link and there is no referrer string.
story continues:
i found another php example and I added it to the php file:
Code: Select all
<?php
$ref=@$HTTP_REFERER;
echo "<font face='Verdana' size='3'><b>Referrer of this page = $ref </b>";
echo $_SERVER['HTTP_REFERER'];
?>
now it works. it displays the referrer:
Code: Select all
Referrer of this page = http://192.168.0.2/incoming/link_to_referrer.htm
So the first php file is not written correctly or something is wrong with my PHP
PS: Finally I found the problem.
it was session folder permission issue.
when I was installing s9y and even when I upgraded it to the nightly build
installation clearly said
writable for the all 3 folders. but they weren't! version 1.3 told me that with little warning at the bottom of the screen (permission denied). 1.2 didn't

So something is wrong with permission checking for folders during installation.
later i will try to enable XSRF to see if its working.