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.
pull/301/head
Yassine Addi 8 years ago committed by GitHub
parent c3c6f68909
commit a0d749276f

@ -430,7 +430,7 @@ class Engine {
// Append base url to redirect url // Append base url to redirect url
if ($base != '/' && strpos($url, '://') === false) { if ($base != '/' && strpos($url, '://') === false) {
$url = preg_replace('#/+#', '/', $base.'/'.$url); $url = $base . preg_replace('#/+#', '/', '/' . $url);
} }
$this->response(false) $this->response(false)

Loading…
Cancel
Save