From f7b56c8a0fc05ef679b7090b1dbfa80eac5ec49b Mon Sep 17 00:00:00 2001 From: Sumithran Date: Mon, 26 Aug 2019 23:15:01 +0530 Subject: [PATCH] added id parameter validation --- task.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/task.php b/task.php index 2a333e7..8b6613e 100644 --- a/task.php +++ b/task.php @@ -22,7 +22,7 @@ // } - $id = $_GET['id']; + $id = htmlentities($_GET['id']); ?> @@ -222,10 +222,5 @@ function(data) { }); - - - - -