canShowDebug checked for a literal string, 'text/html' in order to generate
the debug output. When the default mimetype was changed to text/html; charset=UTF-8, the literal check always failed. There are probably a few more of these floating around.
This commit is contained in:
parent
adace63acf
commit
5e074e0939
2 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
7.2.2
|
||||||
|
- fix: Show Debugging option not working
|
||||||
|
|
||||||
7.2.1
|
7.2.1
|
||||||
- Made a change to version tag commits to deal with unusually long commit
|
- Made a change to version tag commits to deal with unusually long commit
|
||||||
times.
|
times.
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ Returns true if the user meets the condition to see debugging information and de
|
||||||
sub canShowDebug {
|
sub canShowDebug {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return 0 unless ($self->session->setting->get("showDebug"));
|
return 0 unless ($self->session->setting->get("showDebug"));
|
||||||
return 0 unless ($self->session->http->getMimeType eq "text/html");
|
return 0 unless (substr($self->session->http->getMimeType(),0,9) eq "text/html");
|
||||||
return 1 if ($self->session->setting->get("debugIp") eq "");
|
return 1 if ($self->session->setting->get("debugIp") eq "");
|
||||||
my $ips = $self->session->setting->get("debugIp");
|
my $ips = $self->session->setting->get("debugIp");
|
||||||
$ips =~ s/\s+//g;
|
$ips =~ s/\s+//g;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue