From 331207f069633f3228eeec20115623c4dbaec652 Mon Sep 17 00:00:00 2001 From: Ruan Date: Mon, 8 Jun 2015 17:46:47 +0200 Subject: [PATCH] Validate before connecting. --- check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.php b/check.php index f0c61bf..fe68d17 100644 --- a/check.php +++ b/check.php @@ -1,12 +1,12 @@ 16 || !preg_match("/[0-9a-zA-Z_]/", $name)) { echo('Invalid name.'); return; } + require 'includes/page.php'; global $table_bans, $table_history, $conn; $stmt = $conn->prepare("SELECT name,uuid FROM " . $table_history . " WHERE name=? ORDER BY date LIMIT 1");