some checks on server side

This commit is contained in:
Marc Wäckerlin committed 2015-07-02 07:08:13 +00:00
1 parent 2951bc8b91
commit 829fb33818
4 files changed
+150 -108

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<?php
require_once("usertable.php");
try {
require_once("usertable.php");
$user = $db->real_escape_string($_REQUEST['user']);
$q = $db->query("select pubkey from user where name='$user';");
if ($q->num_rows==1) {