From e47f614e621f15c99657d5bdc9ac4ecf89450ff2 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:40:14 +0100 Subject: [PATCH] Convert import statement path from safe string before combining paths --- YesNt.Interpreter/Statements/ProcessingStatements.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/YesNt.Interpreter/Statements/ProcessingStatements.cs b/YesNt.Interpreter/Statements/ProcessingStatements.cs index aa1e963..bd363f5 100644 --- a/YesNt.Interpreter/Statements/ProcessingStatements.cs +++ b/YesNt.Interpreter/Statements/ProcessingStatements.cs @@ -82,6 +82,7 @@ internal partial class ProcessingStatements : StatementRuntimeInformation [Statement("import", SearchMode.StartOfLine, SpaceAround.End, ConsoleColor.Magenta)] public void Import(string path) { + path = path.FromSafeString(); path = Path.Combine(RuntimeInfo.WorkingDirectory, path); if (string.IsNullOrEmpty(Path.GetExtension(path)))