Skip to content

Commit

Permalink
- Removed myrealescapestring, caused issues with zeroing post variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DHaylock committed Jan 28, 2016
1 parent 60a2f64 commit 09767c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Web/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function sanitise_filename($filename) {
require_once('includes/secret.php');

// Get Values
$location = mysql_real_escape_string($_POST['location']);
$count = mysql_real_escape_string($_POST['count']);
$rawtimestamp = mysql_real_escape_string($_POST['rawtimestamp']);
$location = $_POST['location'];
$count = $_POST['count'];
$rawtimestamp = $_POST['rawtimestamp'];

// Prepare INSERT QUERY
$sqlq = "INSERT INTO `data` (`timestamp`,`locationID`,`event`) VALUES (:rawtimestamp,:location,:count)";
Expand Down

0 comments on commit 09767c0

Please sign in to comment.