helly Mon Mar 7 16:52:35 2005 EDT
Modified files:
/php-src/ext/standard file.c
Log:
- Make maic qutes runtime work if length is specified too
http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.401&r2=1.402&ty=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.401 php-src/ext/standard/file.c:1.402
--- php-src/ext/standard/file.c:1.401 Mon Mar 7 16:28:38 2005
+++ php-src/ext/standard/file.c Mon Mar 7 16:52:34 2005
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: file.c,v 1.401 2005/03/07 21:28:38 helly Exp $ */
+/* $Id: file.c,v 1.402 2005/03/07 21:52:34 helly Exp $ */
/* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
@@ -1240,8 +1240,8 @@
PHP_STREAM_TO_ZVAL(stream, arg1);
- if (!arg3 && PG(magic_quotes_runtime)) {
- buffer = estrndup(Z_STRVAL_PP(arg2), Z_STRLEN_PP(arg2));
+ if (PG(magic_quotes_runtime)) {
+ buffer = estrndup(Z_STRVAL_PP(arg2), num_bytes);
php_stripslashes(buffer, &num_bytes TSRMLS_CC);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php