Skip to content

Commit

Permalink
Merge pull request #1395 from RaspAP/security/sanitize-ajax-posts
Browse files Browse the repository at this point in the history
Sanitize post with escapeshellcmd()
  • Loading branch information
billz authored Sep 17, 2023
2 parents 3575d1d + e87e7d1 commit 10637ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax/networking/get_wgkey.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require '../../includes/csrf.php';
require_once '../../includes/config.php';

$entity = $_POST['entity'];
$entity = escapeshellcmd($_POST['entity']);

if (isset($entity)) {

Expand Down

0 comments on commit 10637ef

Please sign in to comment.