diff options
author | Christian Schneider | 2020-12-04 17:02:00 +0100 |
---|---|---|
committer | Christian Schneider | 2020-12-04 17:02:00 +0100 |
commit | b1f93d2a19e2be09fd17410f99c408e2347cd2c8 (patch) | |
tree | 2f6cf107c68ccf7be95ac47bc93b1ed9d159ecdf /it_url.class | |
parent | e3865d30e9d7361229cd56bf746e3b47610ff301 (diff) | |
download | itools-b1f93d2a19e2be09fd17410f99c408e2347cd2c8.tar.gz itools-b1f93d2a19e2be09fd17410f99c408e2347cd2c8.tar.bz2 itools-b1f93d2a19e2be09fd17410f99c408e2347cd2c8.zip |
Ignore all requests to /fonts/ for language override check, previous fix did not work
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index de51b0b..dbd39e4 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|\.woff)', $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|/fonts/|/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 = array_filter([ |