Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Fixed XSS on unrar option
Browse files Browse the repository at this point in the history
reported by wtwver
  • Loading branch information
Th3-822 committed Sep 7, 2021
1 parent 8b478d3 commit e771690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/options/unrar.php
Expand Up @@ -52,7 +52,7 @@ function unrar_setCheckboxes(act, filestounrar) {
elseif ($rar_list[0] == 'ERROR') { printf(lang(370),$rar_list[1].' '.$rar_list[2]); }
}
?>
<input type="<?php echo ($rar_list['NEEDP'] == true) ? 'password' : 'hidden'; ?>" name="passwords[]" value="<?php echo $_GET['passwords'][$i]; ?>" />
<input type="<?php echo ($rar_list['NEEDP'] == true) ? 'password' : 'hidden'; ?>" name="passwords[]" value="<?php echo htmlspecialchars($_GET['passwords'][$i], ENT_QUOTES); ?>" />
&nbsp;
</td>
</tr>
Expand Down

0 comments on commit e771690

Please sign in to comment.