|
From: <ssc...@us...> - 2003-06-25 01:08:59
|
Update of /cvsroot/popfile/engine/UI
In directory sc8-pr-cvs1:/tmp/cvs-serv8923
Modified Files:
Tag: v0/18/1
HTML.pm
Log Message:
backport jgrahamc bugfix:
Handle the case where Norton Internet Security sends through an invalid HTTP header
Index: HTML.pm
===================================================================
RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v
retrieving revision 1.98.2.7
retrieving revision 1.98.2.8
diff -C2 -d -r1.98.2.7 -r1.98.2.8
*** HTML.pm 25 May 2003 03:10:42 -0000 1.98.2.7
--- HTML.pm 25 Jun 2003 01:08:56 -0000 1.98.2.8
***************
*** 296,300 ****
while ( <$client> ) {
$content_length = $1 if ( /Content-Length: (\d+)/i );
! last if ( !/[A-Z]/i );
}
--- 296,311 ----
while ( <$client> ) {
$content_length = $1 if ( /Content-Length: (\d+)/i );
!
! # Discovered that Norton Internet Security was adding
! # HTTP headers of the form
! #
! # ~~~~~~~~~~~~~~: ~~~~~~~~~~~~~
! #
! # which we were not recognizing as valid (surprise,
! # surprise) and this was messing about our handling
! # of POST data. Changed the end of header identification
! # to any line that does not contain a :
!
! last if ( !/:/ );
}
|