Skip to content

Commit

Permalink
security - XSS Fix 01
Browse files Browse the repository at this point in the history
  • Loading branch information
PipoCanaja committed Feb 13, 2022
1 parent c7b63b5 commit 135717a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/html/forms/alert-transports.inc.php
Expand Up @@ -34,10 +34,10 @@
$status = 'ok';
$message = '';

$transport_id = $vars['transport_id'];
$name = $vars['name'];
$transport_id = strip_tags($vars['transport_id']);
$name = strip_tags($vars['name']);
$is_default = (int) (isset($vars['is_default']) && $vars['is_default'] == 'on');
$transport_type = $vars['transport-type'];
$transport_type = strip_tags($vars['transport-type']);

if (empty($name)) {
$status = 'error';
Expand Down

0 comments on commit 135717a

Please sign in to comment.