mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-09-03 05:02:43 +02:00
* refactor * fix: case-sensitive config from env, fix #2935 * lowercase all config section and keys * test: add test for case-insensitivity
This commit is contained in:
@@ -46,7 +46,7 @@ class DisplayAction implements ActionInterface
|
||||
}
|
||||
|
||||
if (array_key_exists('_cache_timeout', $request)) {
|
||||
if (!CUSTOM_CACHE_TIMEOUT) {
|
||||
if (! Configuration::getConfig('cache', 'custom_timeout')) {
|
||||
unset($request['_cache_timeout']);
|
||||
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) . '?' . http_build_query($request);
|
||||
header('Location: ' . $uri, true, 301);
|
||||
|
Reference in New Issue
Block a user