summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2020-12-04 15:50:51 +0100
committerChristian Schneider2020-12-04 15:50:51 +0100
commite3865d30e9d7361229cd56bf746e3b47610ff301 (patch)
tree93e19aac0dc1c8bad3f52f37303c1e27c044378b /it_url.class
parentc997c6082ec2e47244ace87781d29c4766938197 (diff)
downloaditools-e3865d30e9d7361229cd56bf746e3b47610ff301.tar.gz
itools-e3865d30e9d7361229cd56bf746e3b47610ff301.tar.bz2
itools-e3865d30e9d7361229cd56bf746e3b47610ff301.zip
Do not complain about missing language override for .woff/.woff2 files
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 4e40be1..de51b0b 100644
--- a/it_url.class
+++ b/it_url.class
@@ -171,7 +171,7 @@ function parse_http_header($header)
static function _default_headers($url, $p)
{
$search_subrequest = it::match('search\.ch/', $p['url']);
- if ((!it::is_devel() || EDC('subreqcheck')) && $p['url'] && !$p['headers']['Accept-Language'] && T_lang() != T_defaultlang() && $search_subrequest && !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() && $search_subrequest && !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|\.woff)', $p['url']))
it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]);
$headers = array_filter([