summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2020-05-18 11:50:41 +0200
committerChristian Schneider2020-05-18 11:50:41 +0200
commit7188813206706d7780e0d08ccddb49fc79871a45 (patch)
treee77b0710c93b42188e5a14ea8db9349e12a74ede
parent2393e0b28699675b5c6755a615e439af6ac31b37 (diff)
downloaditools-7188813206706d7780e0d08ccddb49fc79871a45.tar.gz
itools-7188813206706d7780e0d08ccddb49fc79871a45.tar.bz2
itools-7188813206706d7780e0d08ccddb49fc79871a45.zip
Avoid unnecessary classes being loaded in tel/feedback.php
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 85471d4..afab941 100644
--- a/it_url.class
+++ b/it_url.class
@@ -170,7 +170,7 @@ function parse_http_header($header)
static function _default_headers($url, $p)
{
- if ((!it::is_devel() || EDC('subreqcheck')) && $p['url'] && T_lang() != T_defaultlang() && it::match('search\.ch/', $p['url']) && !it::match('\blogin\.|banner\.html|machines\.txt|mbtiles\.php|/itjs/|/images/|\.(de|fr|en|it)(\.js|\.html|\.txt|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url']))
+ if ((!it::is_devel() || EDC('subreqcheck')) && $p['url'] && !$p['headers']['Accept-Language'] && T_lang() != T_defaultlang() && it::match('search\.ch/', $p['url']) && !it::match('\blogin\.|banner\.html|machines\.txt|mbtiles\.php|/itjs/|/images/|\.(de|fr|en|it)(\.js|\.html|\.txt|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url']))
it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]);
$headers = [