File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments