This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 484
Fix for plus signs in data and verified array #119
Open
BigRedBot
wants to merge
14
commits into
paypal:master
Choose a base branch
from
BigRedBot:patch-7
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
acb6cad
Fix for plus signs in data
BigRedBot 896a6eb
data array
BigRedBot d69f654
Update PaypalIPN.php
BigRedBot c30a019
moved stripslashes
BigRedBot bb60d8f
edit magic_quotes_enabled check
BigRedBot b27dc98
don't use magic_quotes with rawurldecode
BigRedBot aa09c26
Update PaypalIPN.php
BigRedBot 470468e
Update PaypalIPN.php
BigRedBot 034a7d9
Update PaypalIPN.php
BigRedBot efbb216
Update PaypalIPN.php
BigRedBot c8b5b8e
implemented requests from reviewer
BigRedBot 3c5da67
Update PaypalIPN.php
BigRedBot ebe5ed1
Update PaypalIPN.php
BigRedBot b9956db
Update PaypalIPN.php
BigRedBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this class should have a single responsibility, to verify that the IPN data is valid.
You can then retrieve the post data from
$__POST
or your frameworks request object. I do not see a reason why this needs to return data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least from the sandbox, it is in some cases receiving incorrectly encoded data. This can cause the data in $_POST to be incorrect. Since we can compensate for this and rebuild the data, then we should at that point use the validated rebuilt data.
There is pretty much no reason for it not to include the verified array. It already has it, so why not just return it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only other option (that has not been done yet), is to have paypal's servers always make sure that $_POST is always correct no matter where the data is coming from. This would still require the use of the rawurlencode function, to be sure that plus signs are correctly verified.