summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttpd/cgi-bin/check3
1 files changed, 2 insertions, 1 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index f19f6c6..cbd9370 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -558,7 +558,8 @@ if ($File->{ContentType} eq 'text/html' && $File->{Charset}->{Default}) {
#
# Add a warning if doc is UTF-8 and contains a BOM.
-if ($File->{Charset}->{Use} eq 'utf-8' && @{$File->{Content}} &&
+if ($File->{Charset}->{Use} eq 'utf-8' &&
+ @{$File->{Content}} &&
$File->{Content}->[0] =~ m(^\x{FEFF}))
{
&add_warning('W21', {});