Support » Plugin: ManageWP Worker » php://input bug (with suggested fix)

  • Resolved Stephen Harris

    (@stephenharris)


    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. Since php://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

    https://wordpress.org/plugins/worker/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php://input bug (with suggested fix)’ is closed to new replies.