Hide MySQL config for unauthenticated users.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
9483730df7
commit
078973d862
2 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ huhu 0.11.0 (unreleased)
|
||||||
* Only connect to newsserver if there are approved posts.
|
* Only connect to newsserver if there are approved posts.
|
||||||
* Fix headers with continuation immediately at start.
|
* Fix headers with continuation immediately at start.
|
||||||
* Add cronjob to remove old backup messages.
|
* Add cronjob to remove old backup messages.
|
||||||
|
* Hide MySQL config for unauthenticated users.
|
||||||
|
|
||||||
huhu 0.10 (unknown)
|
huhu 0.10 (unknown)
|
||||||
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code
|
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,8 @@ sub new($$$)
|
||||||
my $authentication = $configref->{'http_authentication_method'};
|
my $authentication = $configref->{'http_authentication_method'};
|
||||||
die "No 'http_authentication_method' in configuration file." unless($authentication);
|
die "No 'http_authentication_method' in configuration file." unless($authentication);
|
||||||
|
|
||||||
|
$self->{'http_auth'} = $authentication;
|
||||||
|
|
||||||
if ($q->auth_type() && $q->auth_type() eq $authentication)
|
if ($q->auth_type() && $q->auth_type() eq $authentication)
|
||||||
{
|
{
|
||||||
$self->{'user_name'} = $q->remote_user();
|
$self->{'user_name'} = $q->remote_user();
|
||||||
|
|
@ -799,7 +801,8 @@ sub display_config($)
|
||||||
my @key = SHOW_CONFIG;
|
my @key = SHOW_CONFIG;
|
||||||
for my $key(@key)
|
for my $key(@key)
|
||||||
{
|
{
|
||||||
printf "<tr><td>%s</td><td>%s</td></tr>", $key, $config->{$key};
|
printf "<tr><td>%s</td><td>%s</td></tr>", $key, $config->{$key}
|
||||||
|
unless ($self->{'http_auth'} eq 'None' && $key =~ /^mysql/);
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue