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) {