diff options
author | Christian Schneider | 2020-04-22 18:56:01 +0200 |
---|---|---|
committer | Christian Schneider | 2020-04-22 18:56:01 +0200 |
commit | f6e5b115faeef0ea0ad47811c7d2facf954bbe48 (patch) | |
tree | 44fce5fa30fc353463b1237b8a133644462f1a66 | |
parent | f5bb873c2094e5f0473a5b63fce65a7c0948443f (diff) | |
download | itools-f6e5b115faeef0ea0ad47811c7d2facf954bbe48.tar.gz itools-f6e5b115faeef0ea0ad47811c7d2facf954bbe48.tar.bz2 itools-f6e5b115faeef0ea0ad47811c7d2facf954bbe48.zip |
Also accept language overrides for txt
-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 418c540..3537b3f 100644 --- a/it_url.class +++ b/it_url.class @@ -162,7 +162,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|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url'])) + 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'])) it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]); $headers = [ |