Skip to content

Commit

Permalink
Resolução XSS [Issue #879]
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPintoSouza committed Jan 6, 2025
1 parent 0b1b613 commit 824e4c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html/geral/modulos_visiveis.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@
<form method="post" id="formulario" action="<?php echo(WWW.'controle/control.php'); ?>">
<?php
if(isset($_GET['msg_c'])){
$msg = $_GET['msg_c'];
$msg = filter_input(INPUT_GET, 'msg_c', FILTER_SANITIZE_STRING);
echo('<div class="alert alert-success" role="alert">
'. $msg .'
'. htmlspecialchars($msg) .'
</div>');
}
if($permissao == 1){
echo($msg." - ".$permissao);
echo(htmlspecialchars($msg)." - ".$permissao);
}else{
?>
<div class="form-group">
Expand Down

0 comments on commit 824e4c5

Please sign in to comment.