- Fixed a problem when URL_BASE is empty and would cause the path to be added to the session cookie

This commit is contained in:
Dave Mc Nicoll committed 2022-05-11 12:27:47 +00:00
1 parent 80dee6de86
commit 19ee40dead
3 files changed
+8 -3

No files matched your search

+4
View File
@@ -67,6 +67,10 @@ trait ControllerTrait {
}
protected function redirect(string $url, int $code = 302, array $headers = []) {
if ($code === 302 && empty(array_change_key_case($headers, CASE_LOWER)['cache-control'])) {
$headers['cache-control'] = 'no-store';
}
return new RedirectResponse($url, $code, $headers);
}
+1
View File
@@ -97,6 +97,7 @@ class Routing {
}
if ( $forbidden = $this->security->taxus($class, $method, $object->user) ) {
return $forbidden;
}