summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO1
-rw-r--r--Xerl.pm4
-rw-r--r--Xerl/Setup/Configure.pm22
-rwxr-xr-xindex.pl4
4 files changed, 15 insertions, 16 deletions
diff --git a/TODO b/TODO
index f77e516..1c8dc5c 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,5 @@
Hint: Run 'make todo' (in the source tree) to see everything in every file what
is to do!
-TODO: - Migrate to Perl 6 after Perl 6 stable is available as a FreeBSD package
TODO: - Evaluate Template Toolkit, maybe use it
TODO: - Documentation of all features/options
diff --git a/Xerl.pm b/Xerl.pm
index 6dfc8f4..fd1421e 100644
--- a/Xerl.pm
+++ b/Xerl.pm
@@ -1,4 +1,4 @@
-# Xerl (c) 2005-2011, 2013-2015 by Paul Buetow
+# Xerl (c) 2005-2011, 2013-2015, 2017 by Paul Buetow
#
# E-Mail: xerl@dev.buetow.org WWW: https://xerl.buetow.org
#
@@ -12,7 +12,7 @@ use warnings;
use v5.14.0;
-use CGI::Carp 'fatalsToBrowser';
+#use CGI::Carp 'fatalsToBrowser';
use Time::HiRes 'gettimeofday';
use Xerl::Base;
diff --git a/Xerl/Setup/Configure.pm b/Xerl/Setup/Configure.pm
index 8f19f80..406df9c 100644
--- a/Xerl/Setup/Configure.pm
+++ b/Xerl/Setup/Configure.pm
@@ -66,17 +66,6 @@ sub defaults {
my $host = $self->get_host();
unless ( -d $self->get_hostroot() . $host ) {
- my $redirect = $self->get_hostroot() . 'redirect:' . $host;
-
- if ( -f $redirect ) {
- my $file = Xerl::Tools::FileIO->new( 'path' => $redirect );
- $file->fslurp();
-
- my $location = $file->shift();
- Xerl::Main::Global::REDIRECT($location);
- $self->set_finish_request(1);
- }
-
my $alias = $self->get_hostroot() . 'alias:' . $host;
my $alias_host = '';
@@ -94,6 +83,17 @@ sub defaults {
$self->set_host( $alias_host );
}
+
+ my $redirect = $self->get_hostroot() . 'redirect:' . $self->get_host();
+
+ if ( -f $redirect ) {
+ my $file = Xerl::Tools::FileIO->new( 'path' => $redirect );
+ $file->fslurp();
+
+ my $location = $file->shift();
+ Xerl::Main::Global::REDIRECT($location);
+ $self->set_finish_request(1);
+ }
}
$self->set_outputformat( $self->get_defaultoutputformat() )
diff --git a/index.pl b/index.pl
index 8d0146a..64ef02e 100755
--- a/index.pl
+++ b/index.pl
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!/usr/local/bin/perl
-# Xerl (c) 2005-2011, 2013-2015 by Paul Buetow
+# Xerl (c) 2005-2011, 2013-2015, 2017 by Paul Buetow
#
# E-Mail: xerl@dev.buetow.org WWW: https://xerl.buetow.org
#