Skip to content

Commit f25eded

Browse files
committed
Fix incorrectly hardcoded _GET
Could be related to segfault seen in the wild during _pack_filenames.
1 parent 0c35caf commit f25eded

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appsec/src/extension/php_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const zend_array *nonnull dd_get_superglob_or_equiv(
6464
if (equiv) {
6565
ret = zend_hash_str_find(equiv, name, name_len);
6666
} else {
67-
ret = dd_php_get_autoglobal(track, ZEND_STRL("_GET"));
67+
ret = dd_php_get_autoglobal(track, name, name_len);
6868
}
6969

7070
if (!ret || Z_TYPE_P(ret) != IS_ARRAY) {

0 commit comments

Comments
 (0)