summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-09-20 16:52:16 +0200
committerUrban Müller2023-09-20 16:52:16 +0200
commitd81ef38f6b66912b62a54f9263b9d15ead872b3d (patch)
tree028d8b6fc9ea4a945de82ccfd5decfd00e63701e
parent134f733834cf57812fefdb0d24784b26487d8b7a (diff)
downloaditools-d81ef38f6b66912b62a54f9263b9d15ead872b3d.tar.gz
itools-d81ef38f6b66912b62a54f9263b9d15ead872b3d.tar.bz2
itools-d81ef38f6b66912b62a54f9263b9d15ead872b3d.zip
accept login subrequests without lang overrides even on //login--searchfield--twin (mail1074)
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 426d155..2124edc 100644
--- a/it_url.class
+++ b/it_url.class
@@ -179,7 +179,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|/fonts/|/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('/login\b|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([