cvs: php4(PHP_4_2_0) /ext/standard quot_print.c /ext/standard/tests/general_functions 002.phpt

From: Date: Mon, 01 Apr 2002 19:27:16 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/standard quot_print.c /ext/standard/tests/general_functions 002.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10818@lists.php.net to get a copy of this message
kir Mon Apr 1 14:27:16 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard quot_print.c /php4/ext/standard/tests/general_functions 002.phpt Log: (PHP quoted_printable_decode) Fixed CR/LF processing for Windows/OS2 @ Fixed CR/LF processing for Windows/OS2 in quoted_printable_decode (kir) Index: php4/ext/standard/quot_print.c diff -u php4/ext/standard/quot_print.c:1.19 php4/ext/standard/quot_print.c:1.19.2.1 --- php4/ext/standard/quot_print.c:1.19 Thu Feb 28 03:26:48 2002 +++ php4/ext/standard/quot_print.c Mon Apr 1 14:27:16 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: quot_print.c,v 1.19 2002/02/28 08:26:48 sebastian Exp $ */ +/* $Id: quot_print.c,v 1.19.2.1 2002/04/01 19:27:16 kir Exp $ */ #include <stdlib.h> @@ -41,8 +41,12 @@ return c - '0'; } else if ( c >= 'A' && c <= 'F' ) + { + return c - 'A' + 10; + } + else if ( c >= 'a' && c <= 'f' ) { - return c - 'A' + 10; + return c - 'a' + 10; } else { @@ -102,7 +106,7 @@ /* End of line reached */ i += k; } - else if ( (str_in[i+k] == 10) && (str_in[i+k+1] == 13)) + else if ( (str_in[i+k] == 13) && (str_in[i+k+1] == 10)) { /* CRLF */ i += k+2; @@ -126,7 +130,7 @@ RETVAL_STRINGL(str_out, j, 0); } -/* }}} */ +/* }}} */i /* * Local variables: Index: php4/ext/standard/tests/general_functions/002.phpt diff -u php4/ext/standard/tests/general_functions/002.phpt:1.1 php4/ext/standard/tests/general_functions/002.phpt:1.1.12.1 --- php4/ext/standard/tests/general_functions/002.phpt:1.1 Fri Nov 17 05:55:37 2000 +++ php4/ext/standard/tests/general_functions/002.phpt Mon Apr 1 14:27:16 2002 @@ -4,10 +4,10 @@ --GET-- --FILE-- <?php echo quoted_printable_decode("=FAwow-factor=C1=D0=D5=DD=C5=CE=CE=D9=C5=0A= -=20=D4=CF=D2=C7=CF=D7=D9=C5= +=20=D4=cf=D2=C7=CF=D7=D9=C5= =20= =D0= =D2=CF=C5=CB=D4=D9"); ?> --EXPECT-- úwow-factorÁÐÕÝÅÎÎÙÅ - ÔÏÒÇÏ×ÙÅ ÐÒÏÅËÔÙ \ No newline at end of file + ÔÏÒÇÏ×ÙÅ ÐÒÏÅËÔÙ

« previous php.cvs (#10818) next »