From 6aba38f37c28fabc3534e82282c259269621060f Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 11 Aug 2009 01:35:52 +0000 Subject: Fixes #942: In register_user, replaced sanitise_string() call with a simple trim(). Not a problem because all SQL sanitation is handled elsewhere. git-svn-id: https://code.elgg.org/elgg/trunk@3424 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine') diff --git a/engine/lib/users.php b/engine/lib/users.php index e5fb7320a..254a9e7a6 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1208,10 +1208,10 @@ // Load the configuration global $CONFIG; - $username = sanitise_string($username); - $password = sanitise_string($password); - $name = sanitise_string($name); - $email = sanitise_string($email); + $username = trim($username); + $password = trim($password); + $name = trim($name); + $email = trim($email); // A little sanity checking if (empty($username) -- cgit v1.2.3