From 91eb3577eef486e616104c3544ba346f1da80c53 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 22 Jan 2006 18:53:15 +0000 Subject: [PATCH] We can't do Paths::sanitize before we check if $attach is NULL because it'll ruin that value in href_compound() --- includes/controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/controller.php b/includes/controller.php index 09c0f2c..f5d0337 100644 --- a/includes/controller.php +++ b/includes/controller.php @@ -179,7 +179,6 @@ class Controller function href_compound($base, $attach = null, $revstr = null) { $url = Paths::fetch_arguments($base . ($revstr === null ? ((strpos($base, '?') !== false) ? '&' . $this->revstr : $this->revstr) : $revstr)); - $attach = Paths::sanitize($attach); if ($attach === null) { @@ -187,6 +186,7 @@ class Controller } else { + $attach = Paths::sanitize($attach); $path = $this->path . (($attach[0] != '/' AND $this->path[ strlen($this->path) - 1 ] != '/') ? '/' : '') . $attach; } -- 2.43.5