File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 5
5
- Core:
6
6
. Fixed bug #65490 (Duplicate calls to get lineno & filename for
7
7
DTRACE_FUNCTION_*). (Chris Jones)
8
+ . Fixed bug #65483 (quoted-printable encode stream filter incorrectly encoding
9
+ spaces). (Michael M Slusarz)
8
10
. Fixed bug #65481 (shutdown segfault due to serialize) (Mike)
9
11
. Fixed bug #65470 (Segmentation fault in zend_error() with
10
12
--enable-dtrace). (Chris Jones, Kris Van Hees)
Original file line number Diff line number Diff line change @@ -951,7 +951,9 @@ static php_conv_err_t php_conv_qprint_encode_convert(php_conv_qprint_encode *ins
951
951
* (pd ++ ) = qp_digits [(c & 0x0f )];
952
952
ocnt -= 3 ;
953
953
line_ccnt -= 3 ;
954
- trail_ws -- ;
954
+ if (trail_ws > 0 ) {
955
+ trail_ws -- ;
956
+ }
955
957
CONSUME_CHAR (ps , icnt , lb_ptr , lb_cnt );
956
958
}
957
959
}
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #65483: quoted-printable encode stream filter incorrectly encoding spaces
3
+ --FILE--
4
+ <?php
5
+
6
+ $ data = 'a b=c d ' ;
7
+
8
+ $ fd = fopen ('php://temp ' , 'w+ ' );
9
+ fwrite ($ fd , $ data );
10
+ rewind ($ fd );
11
+
12
+ $ res = stream_filter_append ($ fd , 'convert.quoted-printable-encode ' , STREAM_FILTER_READ );
13
+ var_dump (stream_get_contents ($ fd , -1 , 0 ));
14
+
15
+ fclose ($ fd );
16
+
17
+ ?>
18
+ --EXPECT--
19
+ string(9) "a b=3Dc d"
You can’t perform that action at this time.
0 commit comments