summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttpd/cgi-bin/check2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 7cd772b..274b2cd 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -3200,7 +3200,7 @@ sub transcode
# Transcoding failed - do it again line by line to find out exactly
# where
my $line_num = 0;
- while ($input =~ /(.*?)(?:\r\n|\n|\r)/g) {
+ while ($input =~ /(.*?)(?:\r\n|\n|\r|\z)/g) {
$line_num++;
eval { $enc->decode($1, Encode::FB_CROAK); };
if ($@) {