Clean up various code.

This commit is contained in:
James Cole
2021-12-19 08:47:02 +01:00
parent 7c780dd75c
commit 179b86c3ba
4 changed files with 17 additions and 18 deletions

View File

@@ -46,16 +46,11 @@ class StartFireflySession extends StartSession
$safeUrl = app('steam')->getSafeUrl($url, route('index'));
if ($url !== $safeUrl) {
//Log::debug(sprintf('storeCurrentUrl: converted "%s" to "%s", so will not use it.', $url, $safeUrl));
return;
}
if ('GET' === $request->method() && !$request->ajax()) {
//Log::debug(sprintf('storeCurrentUrl: Redirect is now "%s".', $safeUrl));
$session->setPreviousUrl($safeUrl);
// return;
}
//Log::debug(sprintf('storeCurrentUrl: Refuse to set "%s" as current URL.', $safeUrl));
}
}