Permalink
Browse files

Merge pull request #301 from yassineaddi/master

Fix redirect method due to a mistake removing backslashes
  • Loading branch information...
2 parents c3c6f68 + a0d7492 commit a123a08f102886644d84dd386cc256333662074c @mikecao committed on GitHub Nov 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 flight/Engine.php
View
@@ -430,7 +430,7 @@ public function _redirect($url, $code = 303) {
// Append base url to redirect url
if ($base != '/' && strpos($url, '://') === false) {
- $url = preg_replace('#/+#', '/', $base.'/'.$url);
+ $url = $base . preg_replace('#/+#', '/', '/' . $url);
}
$this->response(false)

0 comments on commit a123a08

Please sign in to comment.