Skip to content
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

@axelzuzek

Description

@axelzuzek

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions