summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2020-04-21 22:44:03 +0200
committerChristian Schneider2020-04-21 22:44:03 +0200
commitf5bb873c2094e5f0473a5b63fce65a7c0948443f (patch)
tree0972b153ddea0cc2d14ef7a6edb27d5d19293973
parentc7af7888361f6bea414501618a14e2d8823ab2f9 (diff)
downloaditools-f5bb873c2094e5f0473a5b63fce65a7c0948443f.tar.gz
itools-f5bb873c2094e5f0473a5b63fce65a7c0948443f.tar.bz2
itools-f5bb873c2094e5f0473a5b63fce65a7c0948443f.zip
White-list mbtiles.php because it does not support language override urls
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 0be7214..418c540 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|/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|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url']))
it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]);
$headers = [