aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar plopoyop <clement@iMac-de-Clement.local> 2014-09-24 20:06:34 +0200
committerGravatar plopoyop <clement@iMac-de-Clement.local> 2014-09-24 20:06:34 +0200
commitc446625c7f6eda76b03fdac228b2f7b4ded74130 (patch)
tree42ab49b32804eeca003dfe69d6456ecf732b8fb1 /lib
parentffbfbb92cc89c5ae07e0a28ee3477fcd0c44505d (diff)
parenta12d90d85d86c168a6e8a13345f05897f17958a4 (diff)
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 52f53012f..f7a24c026 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -124,6 +124,11 @@ class Minz_Request {
* > sinon, le dispatcher recharge en interne
*/
public static function forward($url = array(), $redirect = false) {
+ if (!is_array($url)) {
+ header('Location: ' . $url);
+ exit();
+ }
+
$url = Minz_Url::checkUrl($url);
if ($redirect) {