@@ -172,7 +172,7 @@ int fpm_status_handle_request(void) /* {{{ */
172
172
173
173
/* full status ? */
174
174
_GET_str = ZSTR_INIT_LITERAL ("_GET" , 0 );
175
- full = ( fpm_php_get_string_from_table ( _GET_str , "full" ) != NULL );
175
+ full = fpm_php_is_key_in_table ( _GET_str , "full" , strlen ( "full" ) );
176
176
short_syntax = short_post = NULL ;
177
177
full_separator = full_pre = full_syntax = full_post = NULL ;
178
178
encode = 0 ;
@@ -215,7 +215,7 @@ int fpm_status_handle_request(void) /* {{{ */
215
215
}
216
216
217
217
/* HTML */
218
- if (fpm_php_get_string_from_table (_GET_str , "html" )) {
218
+ if (fpm_php_is_key_in_table (_GET_str , "html" , strlen ( "html" ) )) {
219
219
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/html" ), 1 , 1 );
220
220
time_format = "%d/%b/%Y:%H:%M:%S %z" ;
221
221
encode = 1 ;
@@ -284,7 +284,7 @@ int fpm_status_handle_request(void) /* {{{ */
284
284
}
285
285
286
286
/* XML */
287
- } else if (fpm_php_get_string_from_table (_GET_str , "xml" )) {
287
+ } else if (fpm_php_is_key_in_table (_GET_str , "xml" , strlen ( "xml" ) )) {
288
288
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/xml" ), 1 , 1 );
289
289
time_format = "%s" ;
290
290
encode = 1 ;
@@ -332,7 +332,7 @@ int fpm_status_handle_request(void) /* {{{ */
332
332
}
333
333
334
334
/* JSON */
335
- } else if (fpm_php_get_string_from_table (_GET_str , "json" )) {
335
+ } else if (fpm_php_is_key_in_table (_GET_str , "json" , strlen ( "json" ) )) {
336
336
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/json" ), 1 , 1 );
337
337
time_format = "%s" ;
338
338
@@ -379,7 +379,7 @@ int fpm_status_handle_request(void) /* {{{ */
379
379
}
380
380
381
381
/* OpenMetrics */
382
- } else if (fpm_php_get_string_from_table (_GET_str , "openmetrics" )) {
382
+ } else if (fpm_php_is_key_in_table (_GET_str , "openmetrics" , strlen ( "openmetrics" ) )) {
383
383
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/openmetrics-text; version=1.0.0; charset=utf-8" ), 1 , 1 );
384
384
time_format = "%s" ;
385
385
0 commit comments