mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
HackStudio: Remove UTF-8 validation for project path
This commit is contained in:
parent
92b6edb35a
commit
6db4d3b898
Notes:
sideshowbarker
2024-07-17 02:57:43 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6db4d3b898
Pull-request: https://github.com/SerenityOS/serenity/pull/22776
1 changed files with 1 additions and 2 deletions
|
@ -223,8 +223,7 @@ static ErrorOr<NonnullRefPtr<HackStudioWidget>> create_hack_studio_widget(bool m
|
|||
if (pid_to_debug != -1 || mode_coredump)
|
||||
project_path = "/usr/src/serenity";
|
||||
else if (!raw_path_argument.is_null())
|
||||
// FIXME: Validation is unintentional, and should be removed when migrating to String.
|
||||
project_path = TRY(ByteString::from_utf8(raw_path_argument));
|
||||
project_path = raw_path_argument;
|
||||
else if (auto last_path = last_opened_project_path(); last_path.has_value())
|
||||
project_path = last_path.release_value();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue