From 6db4d3b898d4984580b201616c150e3a5c003e20 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 15 Jan 2024 15:30:16 +0000 Subject: [PATCH] HackStudio: Remove UTF-8 validation for project path --- Userland/DevTools/HackStudio/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp index 31a9ca8a56..62c3288eac 100644 --- a/Userland/DevTools/HackStudio/main.cpp +++ b/Userland/DevTools/HackStudio/main.cpp @@ -223,8 +223,7 @@ static ErrorOr> 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