plivo-php icon indicating copy to clipboard operation
plivo-php copied to clipboard

validateV3Signature fails when there is no query parameter in URL using Post Method

Open Matt-B50 opened this issue 1 year ago • 0 comments

I get

Warning: Undefined array key "query" in Plivo\Util\v3SignatureValidation::constructGetUrl() (line 101 of /code/vendor/plivo/plivo-php/src/Plivo/Util/v3SignatureValidation.php)

See https://github.com/plivo/plivo-php/blob/0061ba51c96c6c27e92c2ba98250f3547b81b794/src/Plivo/Util/v3SignatureValidation.php#L101C9-L101C44

I'm submitting the URL called by Plivo on a POST request to my end point. It has no query parameter (and I'm not switching to GET requests). I've overcome this by appending a "?" to my URL when calling validateV3Signature

Matt-B50 avatar Dec 30 '23 10:12 Matt-B50