diff options
Diffstat (limited to 'lib/exilog_config.pm')
-rw-r--r-- | lib/exilog_config.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/exilog_config.pm b/lib/exilog_config.pm index bd24b1c..577812d 100644 --- a/lib/exilog_config.pm +++ b/lib/exilog_config.pm @@ -66,6 +66,11 @@ if ( ! -r $cfg_file ) { $config = _read_ph($cfg_file); +# check if user forgots to add a trailing slash - if so, add it here +if ( $config->{web}->{webroot} !~ /\/$/ ) { + $config->{web}->{webroot}.="/"; +} + unless ($config) { print STDERR "($$) [exilog_config] Can't parse configuration file.\n"; exit(0); |