Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag any non-validated/sanitized super global input vars #101

Merged
merged 5 commits into from
Oct 23, 2013

Conversation

shadyvb
Copy link
Contributor

@shadyvb shadyvb commented Oct 20, 2013

Fixes #72

Closes #72
Switch list of sanitizing/autoescaping function to a static var to be used by other classes
@ghost ghost assigned westonruter Oct 20, 2013
return;
}

if (in_array($functionName, $this->sanitizingFunctions) === false) {
if (in_array($functionName, self::$sanitizingFunctions) === false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadyvb just curious: why the switch from instance to static?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of replicating the exact same list again.

empty( $_REQUEST['foo'] )
||
empty( $_POST['foo'] )
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadyvb I added this use of empty() which should be fine just like isset() but it is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, fix is on the way!

@westonruter
Copy link
Member

@shadyvb could you please merge develop into this branch and resolve the merge conflicts?

@ghost ghost assigned shadyvb Oct 22, 2013
westonruter added a commit that referenced this pull request Oct 23, 2013
Flag any non-validated/sanitized super global input vars
@westonruter westonruter merged commit 6a83301 into develop Oct 23, 2013
@GaryJones GaryJones added this to the 0.3.0 milestone Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag any non-validated/sanitized $_GET, $_POST, $_REQUEST, $_SERVER
3 participants