cvs: /php4 php_variables.c
| From: | Thies C. Arntzen | Date: | Mon, 21 Feb 2000 12:13:57 +0000 |
| Subject: | cvs: /php4 php_variables.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10564@lists.php.net to get a copy of this message | ||
thies Mon Feb 21 04:13:57 2000 EDT
Modified files:
/php4 php_variables.c
Log:
@- Fixed crash when magic_quotes were switched off. (Thies)
Index: php4/php_variables.c
diff -u php4/php_variables.c:1.8 php4/php_variables.c:1.9
--- php4/php_variables.c:1.8 Sat Feb 19 15:21:25 2000
+++ php4/php_variables.c Mon Feb 21 04:13:27 2000
@@ -37,7 +37,7 @@
if (PG(magic_quotes_gpc)) {
new_entry.value.str.val = php_addslashes(strval, new_entry.value.str.len,
&new_entry.value.str.len, 0);
} else {
- strval = estrndup(strval, new_entry.value.str.len);
+ new_entry.value.str.val = estrndup(strval, new_entry.value.str.len);
}
new_entry.type = IS_STRING;