urlfilter: Make redirect.cgi template selectable.

This commit is contained in:
Michael Tremer
2013-08-21 17:08:57 +02:00
parent e157791fe9
commit 87e33a423f
11 changed files with 35 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ my %filtersettings;
&readhash("$swroot/urlfilter/settings", \%filtersettings);
# Read the template file.
my $template = $filtersettings{'ERROR_TEMPLATE'};
my $template = $filtersettings{'REDIRECT_TEMPLATE'};
if (($template eq '') || (! -e "$templateroot/$template")) {
$template = "legacy";
}