Falko Timme
2013-10-22 2c76f1a2117f56a3f13452eaca05a5b4d5751a1b
- Fixed FS#3118 - munin & monit logins not being urlencoded.
2 files modified
8 ■■■■ changed files
interface/web/monitor/show_monit.php 4 ●●●● patch | view | raw | blame | history
interface/web/monitor/show_munin.php 4 ●●●● patch | view | raw | blame | history
interface/web/monitor/show_monit.php
@@ -58,10 +58,10 @@
        $monit_password = trim($server_config['monit_password']);
        $auth_string = '';
        if($monit_user != ''){
            $auth_string = $monit_user;
            $auth_string = rawurlencode($monit_user);
        }
        if($monit_user != '' && $monit_password != ''){
            $auth_string .= ':'.$monit_password;
            $auth_string .= ':'.rawurlencode($monit_password);
        }
        if($auth_string != '') $auth_string .= '@';
    
interface/web/monitor/show_munin.php
@@ -58,10 +58,10 @@
        $munin_password = trim($server_config['munin_password']);
        $auth_string = '';
        if($munin_user != ''){
            $auth_string = $munin_user;
            $auth_string = rawurlencode($munin_user);
        }
        if($munin_user != '' && $munin_password != ''){
            $auth_string .= ':'.$munin_password;
            $auth_string .= ':'.rawurlencode($munin_password);
        }
        if($auth_string != '') $auth_string .= '@';