Problem with mixed parameter in body and url
-
I bought the plugin yesterday because it was used in an older version for an installation of a client with an app and the old version did not work in a new installation. However, I have now encountered a problem with the newest version of plugin. In the UserPlus.php (2022-08-01) in line 68 the variable $_REQUEST is overwritten: $_REQUEST = $data_array; This causes mixed parameters in the body and URL to not be recognized correctly. So as soon as parameters are passed in both the body and the URL, an error occurs. Possibly this is due to a change in the PHP version (I use 8.1)? Examples: Request URL: https://xxx.com/api/userplus/generate_auth_cookie/?key=1234567890&data_format=json Data in Body: { "username": "theusername", "password": "password" } ends in an error. parameter key is not recognized I have now replaced this line with $_REQUEST = array_merge($_GET, $data_array); and it seems to work now. Could the developer Ali Qureshi please take a look at this and fix it?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem with mixed parameter in body and url’ is closed to new replies.