diff options
author | wurblzap%gmail.com <> | 2009-03-02 22:24:28 +0100 |
---|---|---|
committer | wurblzap%gmail.com <> | 2009-03-02 22:24:28 +0100 |
commit | a1bc4c8640add65465bc796a02fb7d07c51d59e4 (patch) | |
tree | 84117c9af4b0c799ef6b480d53e2f09e371112e5 | |
parent | 57886ccea2f55e517bd06e7a8f5b90bbf407ab97 (diff) | |
download | bugzilla-a1bc4c8640add65465bc796a02fb7d07c51d59e4.tar.gz bugzilla-a1bc4c8640add65465bc796a02fb7d07c51d59e4.tar.xz |
Bug 481025 - Remove rogue Byte Order Mark.
Patch by Marc Schumann <wurblzap@gmail.com>;
r/a=mkanat
-rw-r--r-- | t/005whitespace.t | 13 | ||||
-rw-r--r-- | template/en/default/account/auth/login-small.html.tmpl | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/t/005whitespace.t b/t/005whitespace.t index e6bd07f4e..edba8b274 100644 --- a/t/005whitespace.t +++ b/t/005whitespace.t @@ -36,7 +36,7 @@ use Support::Templates; use File::Spec; use Test::More tests => ( scalar(@Support::Files::testitems) - + $Support::Templates::num_actual_files) * 2; + + $Support::Templates::num_actual_files) * 3; my @testitems = @Support::Files::testitems; for my $path (@Support::Templates::include_paths) { @@ -68,4 +68,15 @@ foreach my $file (@testitems) { close (FILE); } +foreach my $file (@testitems) { + open (FILE, "$file"); + my $first_line = <FILE>; + if ($first_line =~ /\xef\xbb\xbf/) { + ok(0, "$file contains Byte Order Mark --WARNING"); + } else { + ok(1, "$file is free of a Byte Order Mark"); + } + close (FILE); +} + exit 0; diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index fd651e71d..92901631f 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -1,4 +1,4 @@ -[%# The contents of this file are subject to the Mozilla Public +[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ |