From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- admin/survey/minify/static/gen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/survey/minify/static/gen.php') diff --git a/admin/survey/minify/static/gen.php b/admin/survey/minify/static/gen.php index 2bc40af..5ec84a5 100644 --- a/admin/survey/minify/static/gen.php +++ b/admin/survey/minify/static/gen.php @@ -7,12 +7,12 @@ if (is_file(__DIR__ . '/bootstrap.php')) { $bootstrap_file = __DIR__ . '/../bootstrap.php'; } -$send_400 = function($content = 'Bad URL') { +$send_400 = function ($content = 'Bad URL') { http_response_code(400); die($content); }; -$send_301 = function($url) { +$send_301 = function ($url) { http_response_code(301); header("Cache-Control: max-age=31536000"); header("Location: $url"); -- cgit v1.2.3