diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-29 09:42:12 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-29 09:42:12 +0200 |
commit | 1d67fe13f6b0751c5ba3ab7a93f730e9ceac39cd (patch) | |
tree | e5195d4be0a63fa0b90d95cfe0792688ebd58255 /program/lib/Roundcube/rcube_user.php | |
parent | 56e0cabdece8565a12077becc349bb1d35a5d06e (diff) |
Remove (move to bc.php) unused strip_newlines() and strip_quotes() functions
Diffstat (limited to 'program/lib/Roundcube/rcube_user.php')
-rw-r--r-- | program/lib/Roundcube/rcube_user.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/program/lib/Roundcube/rcube_user.php b/program/lib/Roundcube/rcube_user.php index 505b190d1..5e9c9af80 100644 --- a/program/lib/Roundcube/rcube_user.php +++ b/program/lib/Roundcube/rcube_user.php @@ -495,9 +495,9 @@ class rcube_user "INSERT INTO ".$dbh->table_name('users'). " (created, last_login, username, mail_host, language)". " VALUES (".$dbh->now().", ".$dbh->now().", ?, ?, ?)", - strip_newlines($data['user']), - strip_newlines($data['host']), - strip_newlines($data['language'])); + $data['user'], + $data['host'], + $data['language']); if ($user_id = $dbh->insert_id('users')) { // create rcube_user instance to make plugin hooks work @@ -517,7 +517,7 @@ class rcube_user if (empty($user_email)) { $user_email = strpos($data['user'], '@') ? $user : sprintf('%s@%s', $data['user'], $mail_domain); } - $email_list[] = strip_newlines($user_email); + $email_list[] = $user_email; } // identities_level check else if (count($email_list) > 1 && $rcube->config->get('identities_level', 0) > 1) { @@ -547,7 +547,6 @@ class rcube_user $record['name'] = $user_name != $record['email'] ? $user_name : ''; } - $record['name'] = strip_newlines($record['name']); $record['user_id'] = $user_id; $record['standard'] = $standard; |