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

Filter, sanitize and validate input variables #2

Open
jk opened this issue Oct 30, 2011 · 0 comments
Open

Filter, sanitize and validate input variables #2

jk opened this issue Oct 30, 2011 · 0 comments
Assignees
Labels
Milestone

Comments

@jk
Copy link
Owner

jk commented Oct 30, 2011

As of today, you can specify GET parameters as input to your methods. There is no standardized why to do so for other HTTP verbs like POST, PUT and DELETE. You have to parse $_POST etc. by your self.

While implementing a more user friendly why for accessing input variables it's a good idea to think about security. There is some work in this field. I want to implement some kind of a plugin architecture to integrate https://github.com/Wixel/GUMP to do the filtering etc.

I want to achive something like this chunk:

/**
 * Search
 * 
 * search for something
 *
 * @url POST /search
 * @url GET /search/$value
 * @validate value required, alpha_numeric, max_len=100, min_len=4
 * @filter value trim, sanitize_string
 */
public function search($value='')
{
    # code...
}
@ghost ghost assigned jk Oct 30, 2011
@jk jk modified the milestones: 2.0.0, 1.1.0 Feb 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant