Permalink
Browse files

Wrong datatype of the 2nd argument in filter_input. Should be a strin…

…g, not an array element.
  • Loading branch information...
1 parent e943f9d commit 094aa762b9012b5416af38ff464dcfb52a64d911 mitrimm committed Dec 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Server Code/requestAccess.php
@@ -6,9 +6,9 @@
$dbname = "mugunth1_udid";
$prod = filter_input(INPUT_POST, 'productid', FILTER_SANITIZE_NUMBER_INT);
- $udid = filter_input(INPUT_POST, $_POST['udid'], FILTER_SANITIZE_STRING);
- $email = filter_input(INPUT_POST, $_POST['email'], FILTER_SANITIZE_EMAIL;
- $message = filter_input(INPUT_POST, $_POST['message'], FILTER_SANITIZE_ENCODED);
+ $udid = filter_input(INPUT_POST, 'udid', FILTER_SANITIZE_STRING);
+ $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL;
+ $message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_ENCODED);
// Connect to database server
$hd = mysql_connect("localhost", $user, $password)

0 comments on commit 094aa76

Please sign in to comment.