diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-11 01:35:52 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-08-11 01:35:52 +0000 |
commit | 6aba38f37c28fabc3534e82282c259269621060f (patch) | |
tree | fa8bcc4701435be1ac10cec65f18e566ff7a975a | |
parent | 4043eeb6777ef2bc84e5b97507c113e6bf403918 (diff) | |
download | elgg-6aba38f37c28fabc3534e82282c259269621060f.tar.gz elgg-6aba38f37c28fabc3534e82282c259269621060f.tar.bz2 |
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
-rw-r--r-- | engine/lib/users.php | 8 |
1 files changed, 4 insertions, 4 deletions
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)
|