Skip to content

Commit

Permalink
Prevent XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacionelson committed Jul 26, 2021
1 parent 48fa006 commit cee4021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manage-files.php
Expand Up @@ -27,7 +27,9 @@
* Then get_client_by_id() gets all the other account values.
*/
if (isset($_GET['client'])) {
$this_id = $_GET['client'];
if (!is_numeric($_GET['client'])) { exit; }

$this_id = (int)$_GET['client'];
$this_client = get_client_by_id($this_id);

/** Add the name of the client to the page's title. */
Expand Down

0 comments on commit cee4021

Please sign in to comment.