summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-22 09:14:55 +0400
committerAndrew Dolgov <[email protected]>2013-03-22 09:14:55 +0400
commit3972bf598195efba3e73ae1fef3faceabeb50308 (patch)
tree0e0d6e4570b9f9ba692ffae40b7d170e356c4ec7 /register.php
parent9d9432dab87e3887e4f482ac5afff1586530c692 (diff)
db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close()
Diffstat (limited to 'register.php')
-rw-r--r--register.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/register.php b/register.php
index 678b3c317..0dc91e96e 100644
--- a/register.php
+++ b/register.php
@@ -74,7 +74,7 @@
if ($action == "check") {
header("Content-Type: application/xml");
- $login = trim(db_escape_string($_REQUEST['login']));
+ $login = trim(db_escape_string($link, $_REQUEST['login']));
$result = db_query($link, "SELECT id FROM ttrss_users WHERE
LOWER(login) = LOWER('$login')");
@@ -242,9 +242,9 @@
<?php } else if ($action == "do_register") { ?>
<?php
- $login = mb_strtolower(trim(db_escape_string($_REQUEST["login"])));
- $email = trim(db_escape_string($_REQUEST["email"]));
- $test = trim(db_escape_string($_REQUEST["turing_test"]));
+ $login = mb_strtolower(trim(db_escape_string($link, $_REQUEST["login"])));
+ $email = trim(db_escape_string($link, $_REQUEST["email"]));
+ $test = trim(db_escape_string($link, $_REQUEST["turing_test"]));
if (!$login || !$email || !$test) {
print_error(__("Your registration information is incomplete."));