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

Added filter #4

Merged
merged 2 commits into from
Jul 3, 2013
Merged

Added filter #4

merged 2 commits into from
Jul 3, 2013

Conversation

twodayslate
Copy link
Contributor

$field = filter_var($_GET['fid'], FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE);

If attempted xss then $field will be null

Let me know if this breaks anything. It should be good.

If you could help me out with listing all the files and subfolders in one list... that would be awesome! Thanks! See issue #2.

$field = filter_var($_GET['fid'], FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE);

If attempted xss then $field will be null
@purplespider purplespider reopened this Jul 3, 2013
@purplespider purplespider merged commit b1b1a26 into purplespider:master Jul 3, 2013
@purplespider
Copy link
Owner

Merged this, but also added a $_GET check to avoid "Notice: Undefined index" on dev.

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.

2 participants