From: brettp Date: Tue, 11 Aug 2009 01:35:52 +0000 (+0000) Subject: Fixes #942: In register_user, replaced sanitise_string() call with a simple trim... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6aba38f37c28fabc3534e82282c259269621060f;p=lorea%2Felgg.git 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 --- 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)