enter image description here

Tell me why the wrong value can be saved in GET? POST and COOKIE do not have such keys. The word "index" is present in the url. Where to dig?

Request line: https: //domain.loc/api/elements/index/list? Hash = 35de7b7068 & asdf = sadfsadfasdf

Server - nginx + php-fpm

  • Add query string with parameters to the question. - Visman
  • Judging by the request, rewrite happens somewhere in nginx. Need config nginx - Alexey Ten

1 answer 1

The case may be in setting the filling of global arrays http://php.net/manual/ru/ini.core.php#ini.variables-order , if the order filling is set as EGPCS then when passing $ _GET ['hash'] and $ _POST ['hash'], $ _REQUEST ['hash'] falls into $ _POST ['hash'], because P comes after G