This repository was archived by the owner on May 17, 2021. It is now read-only.
This repository was archived by the owner on May 17, 2021. It is now read-only.
SaveFileContentController wrong filepath under windows #9
Open
Description
Saving a change results in a
"message": "Requested file does not exist.",
"exception": "Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException",
in Facade\CodeEditor\Http\Controllers\SaveFileContentController:
$file = $request->get('file');
abort_unless($file, Response::HTTP_UNPROCESSABLE_ENTITY);
$filePath = base_path($file);
$this->ensureFileExistInProject($filePath);
example under windows
echo $file; => C:\dev\myApp\app\Http\Controllers\Frontend\MainController.php
echo $filePath; => C:\dev\myApp\C:\dev\myApp\app\Http\Controllers\Frontend\MainController.php
is this a configuration problem (in my setup) or a bug?
Metadata
Metadata
Assignees
Labels
No labels