From 6b506636f05d3027c6262a09a50afe3afe537270 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Tue, 23 Jun 2026 18:56:18 -0400 Subject: [PATCH] always normalize paths --- flight/template/View.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/flight/template/View.php b/flight/template/View.php index 63f2a8d..26c3f2c 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -96,9 +96,7 @@ class View $template = $this->getTemplate($file); if (!$this->exists($file)) { - $normalized_path = $this::normalizePath($template); - - throw new Exception("Template file not found: $normalized_path."); + throw new Exception("Template file not found: $template."); } extract($this->vars); @@ -156,7 +154,7 @@ class View return $file; } - return $this->path . DIRECTORY_SEPARATOR . $file; + return $this::normalizePath("$this->path/$file"); } /**