From 93fc1fc439122f8370b5b5b62d29887683f30b34 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 24 Feb 2015 17:49:01 +0100 Subject: send referer if internal request --- it_url.class | 1 + 1 file changed, 1 insertion(+) diff --git a/it_url.class b/it_url.class index 489998f..a842e51 100644 --- a/it_url.class +++ b/it_url.class @@ -316,6 +316,7 @@ function request($p=array()) 'Host' => $url->realhostname . $url->explicitport, 'User-Agent' => "Mozilla/5.0 (compatible; MSIE 9.0; ITools)", 'Accept-Language' => $p['headers']['Accept-Language'] ?: T_lang(), # can prevent loading of it_text + 'Referer' => it::match('([-\w]+\.\w+)$', $url->hostname) == it::match('([-\w]+\.\w+)$', $_SERVER['HTTP_HOST']) ? it_url::absolute(U($_GET)) : null, ); if (is_int($p['filemtime'])) -- cgit v1.2.3