summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2020-04-21 20:11:14 +0200
committerChristian Schneider2020-04-21 20:11:14 +0200
commitc7af7888361f6bea414501618a14e2d8823ab2f9 (patch)
tree692dca9a2946ebd5e409493940d9a5f8ace0c44d /it_url.class
parentc1145f3b16f6567be51dd2708f3a4db55aa0e715 (diff)
downloaditools-c7af7888361f6bea414501618a14e2d8823ab2f9.tar.gz
itools-c7af7888361f6bea414501618a14e2d8823ab2f9.tar.bz2
itools-c7af7888361f6bea414501618a14e2d8823ab2f9.zip
Also accept language overrides for gif, jpg and png
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 7150910..0be7214 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|/itjs/|/images/|\.(de|fr|en|it)(\.js|\.html|\.php|\.ics|\.pdf|\.json|\.csv)|machines\.txt', $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|/itjs/|/images/|\.(de|fr|en|it)(\.js|\.html|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url']))
it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]);
$headers = [