Changeset 260


Ignore:
Timestamp:
Jun 25, 2018, 9:49:53 PM (2 years ago)
Author:
g7moreau
Message:
  • Add / at end
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nagios-velvice/velvice.cgi

    r259 r260  
    1515use strict;
    1616use warnings;
    17 use version; our $VERSION = version->declare('0.6.4');
     17use version; our $VERSION = version->declare('0.6.5');
    1818
    1919use CGI;
     
    2727my $cgi_check       = uri_decode($query->param('check'));
    2828my $cgi_script_name = $query->script_name();
    29 my $cgi_path        = $cgi_script_name =~ s{/[^/]\.cgi$}{}r;
     29my $cgi_path        = $cgi_script_name =~ s{/[^/]+\.cgi$}{}r;
    3030
    3131my $config = {};
     
    3434$config->{'nagios-server'}{'status-file'} ||= '/var/cache/nagios3/status.dat';
    3535$config->{'nagios-server'}{'nagios-cmd'}  ||= '/var/lib/nagios3/rw/nagios.cmd';
    36 $config->{'nagios-server'}{'portal-url'}  ||= $cgi_path =~ s{/cgi-bin/}{/}r;
     36$config->{'nagios-server'}{'portal-url'}  ||= $cgi_path =~ s{/cgi-bin/}{/}r . '/';
    3737$config->{'nagios-server'}{'status-cgi'}  ||= "$cgi_path/status.cgi";
    3838$config->{'host-mapping'}                 ||= {};
Note: See TracChangeset for help on using the changeset viewer.