Skip to content

Commit 2c76f1a

Browse files
committed
- Fixed FS#3118 - munin & monit logins not being urlencoded.
1 parent 0c072eb commit 2c76f1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

interface/web/monitor/show_monit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
$monit_password = trim($server_config['monit_password']);
5959
$auth_string = '';
6060
if($monit_user != ''){
61-
$auth_string = $monit_user;
61+
$auth_string = rawurlencode($monit_user);
6262
}
6363
if($monit_user != '' && $monit_password != ''){
64-
$auth_string .= ':'.$monit_password;
64+
$auth_string .= ':'.rawurlencode($monit_password);
6565
}
6666
if($auth_string != '') $auth_string .= '@';
6767

interface/web/monitor/show_munin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
$munin_password = trim($server_config['munin_password']);
5959
$auth_string = '';
6060
if($munin_user != ''){
61-
$auth_string = $munin_user;
61+
$auth_string = rawurlencode($munin_user);
6262
}
6363
if($munin_user != '' && $munin_password != ''){
64-
$auth_string .= ':'.$munin_password;
64+
$auth_string .= ':'.rawurlencode($munin_password);
6565
}
6666
if($auth_string != '') $auth_string .= '@';
6767

0 commit comments

Comments
 (0)