Skip to content

Commit

Permalink
feat: Secure admin menu request input
Browse files Browse the repository at this point in the history
  • Loading branch information
hmohammadi committed Nov 14, 2021
1 parent 2872af3 commit d41ea41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Admin_Menu_Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function get_admin_menu() {
* just like WordPress uses it in the backend.
*/
public function update_menu() {
$menu = $_REQUEST['adminMenu'];
$menu = ezpz_tweaks_recursive_sanitize( $_REQUEST['adminMenu'] );
$items = array();
$submenu = array();

Expand Down

0 comments on commit d41ea41

Please sign in to comment.