]> granicus.if.org Git - php/commitdiff
- fix build (var.s is for zstr)
authorPierre Joye <pajoye@php.net>
Fri, 3 Nov 2006 16:40:52 +0000 (16:40 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 3 Nov 2006 16:40:52 +0000 (16:40 +0000)
sapi/cgi/cgi_main.c

index 54216568e1429911504712ef7f640813745efedb..866ccd90c7760a1bf380aa46ecb1f0cd670830b9 100644 (file)
@@ -491,8 +491,8 @@ void cgi_php_import_environment_variables(zval *array_ptr TSRMLS_DC)
                     zend_hash_get_current_data_ex(&request->env, (void **) &val, &pos) == SUCCESS;
                     zend_hash_move_forward_ex(&request->env, &pos)) {
                        int new_val_len;
-                       if (sapi_module.input_filter(PARSE_SERVER, var.s, val, strlen(*val), &new_val_len TSRMLS_CC)) {
-                               php_register_variable_safe(var.s, *val, new_val_len, array_ptr TSRMLS_CC);
+                       if (sapi_module.input_filter(PARSE_SERVER, var, val, strlen(*val), &new_val_len TSRMLS_CC)) {
+                               php_register_variable_safe(var, *val, new_val_len, array_ptr TSRMLS_CC);
                        }
                }
                PG(magic_quotes_gpc) = magic_quotes_gpc;