rasmus Mon Jul 25 18:37:37 2005 EDT
Modified files:
/php-src/main php_variables.c
Log:
I could have sworn I committed this a while ago. Just a tiny NULL safety
check here.
http://cvs.php.net/diff.php/php-src/main/php_variables.c?r1=1.100&r2=1.101&ty=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.100 php-src/main/php_variables.c:1.101
--- php-src/main/php_variables.c:1.100 Tue Jul 19 15:25:33 2005
+++ php-src/main/php_variables.c Mon Jul 25 18:37:35 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_variables.c,v 1.100 2005/07/19 19:25:33 wez Exp $ */
+/* $Id: php_variables.c,v 1.101 2005/07/25 22:37:35 rasmus Exp $ */
#include <stdio.h>
#include "php.h"
@@ -236,7 +236,7 @@
SAPI_API SAPI_INPUT_FILTER_FUNC(php_default_input_filter)
{
/* TODO: check .ini setting here and apply user-defined input filter */
- *new_val_len = val_len;
+ if(new_val_len) *new_val_len = val_len;
return 1;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php