commit | 99501051184bf4fe73e36c10d282f27811e6a414 | [log] [tgz] |
---|---|---|
author | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 20:09:08 2019 +0200 |
committer | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 20:09:08 2019 +0200 |
tree | cef5c556b434829c6a1a9c0cc3093982589410e1 | |
parent | dd6cfb4e03d3eb13e8124e10837e9a9b03bb61e1 [diff] [blame] |
Fixed vulnerabilities
diff --git a/index.php b/index.php index 9ef86fe..3e29c26 100644 --- a/index.php +++ b/index.php
@@ -55,7 +55,7 @@ console.log(users); autocomplete(document.getElementById("search-input"), users, "search"); - userid = <?=isset($_COOKIE['user']) ? $_COOKIE['user'] : -1 ?>; + userid = <?=isset($_COOKIE['user']) ? (int)$_COOKIE['user'] : -1 ?>; username = $('option[value=' + userid + ']').text(); if (userid > 0) {