Jquery / Security question
Posted: Thu Nov 18, 2010 4:35 pm
For the sake of keeping my code DRY, and so that I can manage classes easier, I want to have my PBBG set up where a div is specified with a CSS class that matches the action you would take. For example, an arrow you could click might be assigned the class action_go_north, and would pass this class to a jQuery function on click, like @jQuery:action( go_north );.
Then jQuery would pass that action onto an action handler in PHP, which would pass that to it's respective class/function to return data. What I am wondering, is is it safe to accept post data in this way? I will be validating data server side, but I'm just wondering if there are any immediate security risks to doing this.
Then jQuery would pass that action onto an action handler in PHP, which would pass that to it's respective class/function to return data. What I am wondering, is is it safe to accept post data in this way? I will be validating data server side, but I'm just wondering if there are any immediate security risks to doing this.