php://input bug (with suggested fix)
-
Hi,
I’m the lead developer of Event Organiser (and the associated extensions). I’ve found a bug which causes a conflict between ManageWP and some of those extensions (and, quite possibly other plug-ins to).
It relates to the code in
init.php
, specifically this line. Sincephp://input
is stream, calling file_get_contents(‘php://input’) effecitvely “loses” the data, so that subsequent calls to file_get_contents(‘php://input’) return nothing.In this case, data that was intended for a different plug-in was read by ManageWP, so by the time that plug-in executed the data was gone.
The fix would simple: only read
php://input
when the request is directed at a particular end-point.Many thanks!
Stephen
- The topic ‘php://input bug (with suggested fix)’ is closed to new replies.