From d3d3f39a404453b21bc7650ed7e9838ffdd86ea7 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sun, 27 Aug 2017 22:10:55 +0200
Subject: [PATCH] never redirect from a redirect action

during testing, redirects may not be executed, ActionAbort can default
to redirecting which ould create an infinite loop.
---
 inc/Action/Redirect.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/Action/Redirect.php b/inc/Action/Redirect.php
index 0e989d1ff..2e28f4550 100644
--- a/inc/Action/Redirect.php
+++ b/inc/Action/Redirect.php
@@ -44,7 +44,7 @@ class Redirect extends AbstractAliasAction {
         trigger_event('ACTION_SHOW_REDIRECT', $opts, array($this, 'redirect'));
 
         // should never be reached
-        throw new ActionAbort();
+        throw new ActionAbort('show');
     }
 
     /**
-- 
GitLab