Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv10067
Modified Files:
serendipity_functions.inc.php
Log Message:
(Untested) Patch to prevent the admin interface to be logged as referrer when using the 'Back to Blog' link.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- serendipity_functions.inc.php 6 Apr 2003 21:33:40 -0000 1.30
+++ serendipity_functions.inc.php 7 Apr 2003 05:44:17 -0000 1.31
@@ -1401,6 +1401,11 @@
function serendipity_track_referrer($entry = 0) {
global $serendipity;
+
+ if (stristr($_SERVER['HTTP_REFERER'], $serendipity['baseURL']) !== false) {
+ return;
+ }
+
$url_parts = parse_url($_SERVER['HTTP_REFERER']);
if (!$url_parts['host'] ||
strstr($_url_parts['host'], $_SERVER['SERVER_NAME'])) {
|