Skip to content

Commit

Permalink
QA: On command injection
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Aug 4, 2023
1 parent 2eec21e commit ca5a66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/snmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ function snmp_escape_string($string) {

return SNMP_ESCAPE_CHARACTER . $string . SNMP_ESCAPE_CHARACTER;
} else {
return cacti_escape_shell_arg($string);
return cacti_escapeshellarg($string);
}
}
}
Expand Down

0 comments on commit ca5a66c

Please sign in to comment.