cvs: php-src /main php_variables.c
| From: | Rasmus Lerdorf | Date: | Mon, 25 Jul 2005 22:37:37 +0000 |
| Subject: | cvs: php-src /main php_variables.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-33065@lists.php.net to get a copy of this message | ||
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;
}