[interchange] * Allow return from Dispatch after Autoload routine.

Mike Heins <[email protected]> Tue, 14 Jun 2016 20:05:35 +0000
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 5ba9d82538f0ddb6aaf2cc9cf99ece2968a0f8bb
Author: Mike Heins <[email protected]>
Date:   Tue Jun 14 16:02:34 2016 -0400

    * Allow return from Dispatch after Autoload routine.

 lib/Vend/Dispatch.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/Vend/Dispatch.pm b/lib/Vend/Dispatch.pm
index c84fcc0..ddfa50e 100644
--- a/lib/Vend/Dispatch.pm
+++ b/lib/Vend/Dispatch.pm
@@ -1770,6 +1770,8 @@ EOF
 	run_macro($Vend::Session->{Autoload});
 #show_times("end session Autoload macro") if $Global::ShowTimes;
 
+    return $Vend::AutoloadReturn if defined $Vend::AutoloadReturn;
+
     # If the cgi-bin program was invoked with no extra path info,
     # just display the catalog page.
     if (! $Vend::FinalPath || $Vend::FinalPath =~ m:^/+$:) {