From a0d749276fc780cf2713650b512ef38d8752c483 Mon Sep 17 00:00:00 2001 From: Yassine Addi Date: Sun, 20 Nov 2016 16:36:53 +0000 Subject: [PATCH] Fix redirect method due to a mistake removing backslashes The problem is that if 'flight.base_url' setting is set to 'http://localhost/flight', then: $url = 'http:/localhost/flight'; Notice that one backslash has been removed. --- flight/Engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/Engine.php b/flight/Engine.php index 5f73173..bcc6dc1 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -430,7 +430,7 @@ class Engine { // Append base url to redirect url if ($base != '/' && strpos($url, '://') === false) { - $url = preg_replace('#/+#', '/', $base.'/'.$url); + $url = $base . preg_replace('#/+#', '/', '/' . $url); } $this->response(false)