Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions wp-plugin-grunt.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function my_action_javascript() { ?>
function my_action_callback() {
global $wpdb; // this is how you get access to the database
$environment = $_POST['environment'];
$response = shell_exec( $_POST['command']);
$response = shell_exec(escapeshellcmd($_POST['command']));
echo $environment .' '. $response .' '. get_option( 'extra_post_info' );
wp_die(); // this is required to terminate immediately and return a proper response
}
Expand Down Expand Up @@ -93,4 +93,4 @@ function extra_post_info($content)

}

?>
?>