httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject Re: [PATCH] to enhance bugdb.cgi (take 2)
Date Thu, 24 Apr 1997 23:24:04 GMT
>--- 269,308 ----
>  	$value = &cgi_trans($value);
>  	# By convention, multi-line fields have newlines at end of
>  	# each line.  I think some browsers forget the last newline?
>! 	if ($fieldnames_multi{$key} > 0) {
>! 	    #
>! 	    # Convert any CR-LFs or CRs to \n (different browsers use
>! 	    # different line terminators).
>! 	    #
>! 	    $value =~ s/\r\n/\n/;
>! 	    $value =~ s/\r/\n/;

that needs to be 
            $value =~ s/\r/\n/g;
since you want to replace all of them, not just the first.

+1 with that change,

....Roy

Mime
View raw message