Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
2c76f1a2
Commit
2c76f1a2
authored
Oct 23, 2013
by
Falko Timme
Browse files
- Fixed FS#3118 - munin & monit logins not being urlencoded.
parent
0c072eb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/monitor/show_monit.php
View file @
2c76f1a2
...
...
@@ -58,10 +58,10 @@ if($_SESSION["s"]["user"]["typ"] == 'admin'){
$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
View file @
2c76f1a2
...
...
@@ -58,10 +58,10 @@ if($_SESSION["s"]["user"]["typ"] == 'admin'){
$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
.
=
'@'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment