bernd commited on 2007-11-16 16:08:19
Zeige 1 geänderte Dateien mit 4 Einfügungen und 4 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@783 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -43,8 +43,8 @@ function get_jabberaccount_details($id) |
| 43 | 43 |
|
| 44 | 44 |
function valid_jabber_password($pass) |
| 45 | 45 |
{
|
| 46 |
- $new = filter_input_general($pass); |
|
| 47 |
- return ($new == $pass); |
|
| 46 |
+ // Hier könnten erweiterte Checks stehen wenn nötig. |
|
| 47 |
+ return true; |
|
| 48 | 48 |
} |
| 49 | 49 |
|
| 50 | 50 |
|
| ... | ... |
@@ -57,7 +57,7 @@ function create_jabber_account($local, $domain, $password) |
| 57 | 57 |
$domain = (int) $domain; |
| 58 | 58 |
if (! valid_jabber_password($password)) |
| 59 | 59 |
input_error('Das Passwort enthält Zeichen, die aufgrund technischer Beschränkungen momentan nicht benutzt werden können.');
|
| 60 |
- $password = mysql_real_escape_string( filter_input_general( $password ) ); |
|
| 60 |
+ $password = mysql_real_escape_string( $password ); |
|
| 61 | 61 |
|
| 62 | 62 |
if ($domain > 0) |
| 63 | 63 |
{
|
| ... | ... |
@@ -95,7 +95,7 @@ function change_jabber_password($id, $password) |
| 95 | 95 |
$id = (int) $id; |
| 96 | 96 |
if (! valid_jabber_password($password)) |
| 97 | 97 |
input_error('Das Passwort enthält Zeichen, die aufgrund technischer Beschränkungen momentan nicht benutzt werden können.');
|
| 98 |
- $password = mysql_real_escape_string( filter_input_general( $password ) ); |
|
| 98 |
+ $password = mysql_real_escape_string( $password ); |
|
| 99 | 99 |
|
| 100 | 100 |
db_query("UPDATE jabber.accounts SET password='{$password}' WHERE customerno={$customerno} AND id={$id} LIMIT 1");
|
| 101 | 101 |
logger("modules/jabber/include/jabberaccounts.php", "jabber", "changed password for account »{$id}«");
|
| 102 | 102 |