codeigniter-log-viewer icon indicating copy to clipboard operation
codeigniter-log-viewer copied to clipboard

Delete log no longer works in Ci 4.5.x

Open pietos opened this issue 1 year ago • 1 comments

Where you try to delete a log file you will get the following error: image

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);
    }

pietos avatar Jun 26 '24 09:06 pietos

thanks for the fix!

frankvanderee avatar Sep 05 '24 10:09 frankvanderee