Browse Source

first attempt at input sanitation

development
mauirixxx 8 years ago
parent
commit
b89bfccd56
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      gw-pull.php

+ 2
- 2
gw-pull.php View File

@@ -1,7 +1,7 @@
<?php
$cnameid = $_GET['toonid']; //need to sanitize this input somehow
include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
$cnameid = mysqli_real_escape_string($con, $_GET['toonid']); //need to sanitize this input somehow
if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']');
}
@@ -20,7 +20,7 @@ if (mysqli_num_rows($result) > 0) {
} else {
echo 'a ' . $row['material'] . '!<BR />';
}
} //add another else statement to cover RUNES here. or up there.
}
}
} else {
echo 'no data to display for that character';


Loading…
Cancel
Save