Unslash key description

Closes #9068
This commit is contained in:
Mike Jolley 2015-09-07 16:29:03 +01:00
parent 358f3f79fa
commit a056e3e649
1 changed files with 1 additions and 1 deletions

View File

@ -2369,7 +2369,7 @@ class WC_AJAX {
}
$key_id = absint( $_POST['key_id'] );
$description = sanitize_text_field( $_POST['description'] );
$description = sanitize_text_field( wp_unslash( $_POST['description'] ) );
$permissions = ( in_array( $_POST['permissions'], array( 'read', 'write', 'read_write' ) ) ) ? sanitize_text_field( $_POST['permissions'] ) : 'read';
$user_id = absint( $_POST['user'] );