Skip to content

AlternativeFunctions: allow for php://input used with file_get_contents()#1649

Merged
GaryJones merged 1 commit into
developfrom
feature/alternative-functions-allow-file-get-contents-input-stream
Feb 20, 2019
Merged

AlternativeFunctions: allow for php://input used with file_get_contents()#1649
GaryJones merged 1 commit into
developfrom
feature/alternative-functions-allow-file-get-contents-input-stream

Conversation

@jrfnl

@jrfnl jrfnl commented Feb 20, 2019

Copy link
Copy Markdown
Member

Reported by @remcotolsma in 49e7700#commitcomment-32391794

While a little esoteric in a WP context, using the WP File Wrapper functions is not a suitable alternative when php://input is being read.

Includes unit test.

Note: an issue should probably be opened to check if any other sniffs should be adjusted to account for php://input. I have not verified this at this time, but the input validation sniff comes to mind.

Reported by remcotolsma in 49e7700#commitcomment-32391794

While a little esoteric in a WP context, using the WP File Wrapper functions is not a suitable alternative when `php://input` is being read.

Includes unit test.
@GaryJones GaryJones merged commit 1f4d912 into develop Feb 20, 2019
@GaryJones GaryJones deleted the feature/alternative-functions-allow-file-get-contents-input-stream branch February 20, 2019 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants