Skip to content

Commit e87e7d1

Browse files
committed
Sanitize post with escapeshellcmd()
1 parent 3575d1d commit e87e7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ajax/networking/get_wgkey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require '../../includes/csrf.php';
44
require_once '../../includes/config.php';
55

6-
$entity = $_POST['entity'];
6+
$entity = escapeshellcmd($_POST['entity']);
77

88
if (isset($entity)) {
99

0 commit comments

Comments
 (0)