cvs: php-src(PHP_5_3) /ext/standard php_fopen_wrapper.c /ext/standard/tests/file bug43008.phpt
| From: | Arnaud Le Blanc | Date: | Sat, 02 Aug 2008 06:35:41 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/standard php_fopen_wrapper.c /ext/standard/tests/file bug43008.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-51893@lists.php.net to get a copy of this message | ||
lbarnaud Sat Aug 2 06:35:41 2008 UTC
Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/file bug43008.phpt
Modified files:
/php-src/ext/standard php_fopen_wrapper.c
Log:
Allow urlencode()d filer names in php://filter
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.7.2.2&r2=1.45.2.4.2.7.2.3&diff_format=u
Index: php-src/ext/standard/php_fopen_wrapper.c
diff -u php-src/ext/standard/php_fopen_wrapper.c:1.45.2.4.2.7.2.2
php-src/ext/standard/php_fopen_wrapper.c:1.45.2.4.2.7.2.3
--- php-src/ext/standard/php_fopen_wrapper.c:1.45.2.4.2.7.2.2 Mon Dec 31 07:17:15 2007
+++ php-src/ext/standard/php_fopen_wrapper.c Sat Aug 2 06:35:41 2008
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_fopen_wrapper.c,v 1.45.2.4.2.7.2.2 2007/12/31 07:17:15 sebastian Exp $ */
+/* $Id: php_fopen_wrapper.c,v 1.45.2.4.2.7.2.3 2008/08/02 06:35:41 lbarnaud Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -133,6 +133,7 @@
p = php_strtok_r(filterlist, "|", &token);
while (p) {
+ php_url_decode(p, strlen(p));
if (read_chain) {
if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream)
TSRMLS_CC))) {
php_stream_filter_append(&stream->readfilters, temp_filter);
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug43008.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/file/bug43008.phpt
+++ php-src/ext/standard/tests/file/bug43008.phpt