codeigniter-log-viewer
codeigniter-log-viewer copied to clipboard
Delete log no longer works in Ci 4.5.x
Where you try to delete a log file you will get the following error:
Currently
public function showLogs() {
$request = \Config\Services::request();
if(!is_null($request->getGet("del"))) {
$this->deleteFiles(base64_decode($request->getGet("del")));
$uri = \Config\Services::request()->uri->getPath();
return redirect()->to('/'.$uri);
}
Solution
public function showLogs() {
$request = \Config\Services::request();
if(!is_null($request->getGet("del"))) {
$this->deleteFiles(base64_decode($request->getGet("del")));
$uriPath = $request->getUri()->getPath();
return redirect()->to($uriPath);
}
thanks for the fix!