Skip to content

Commit

Permalink
sanitize api call
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jul 4, 2023
1 parent c24e5d2 commit 687c91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/class-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public static function register_routes() {
'sanitize_callback' => 'esc_url_raw',
),
'mode' => array(
'required' => false,
'required' => false,
'sanitize_callback' => 'sanitize_key',
),
),
'permission_callback' => function () {
Expand Down

0 comments on commit 687c91e

Please sign in to comment.