From 9b37fb82c94a480ef6af2f7b9a8b889d4381e703 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 24 Apr 2011 00:33:37 +0000 Subject: utf-8, RT#12514 --- httemplate/autohandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/autohandler') diff --git a/httemplate/autohandler b/httemplate/autohandler index ae04d423f..d52b791a7 100644 --- a/httemplate/autohandler +++ b/httemplate/autohandler @@ -7,7 +7,7 @@ my $profile = ''; if ( UNIVERSAL::can(dbh, 'sprintProfile') ) { - if ( lc($r->content_type) eq 'text/html' + if ( lc($r->content_type) =~ /^text\/html/ && $FS::CurrentUser::CurrentUser->option('show_db_profile') ) { -- cgit v1.2.1