diff options
author | Alexey Shchepin <alexey@process-one.net> | 2007-10-06 17:35:15 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2007-10-06 17:35:15 +0000 |
commit | 5ab52e2712d7e6a9c61254355b3d9a7db952f65b (patch) | |
tree | 0886e85d749807417ab07a37319e71761e7e6950 | |
parent | SVN Revision: 954 (diff) |
* src/mod_offline_odbc.erl: Bugfix
SVN Revision: 955
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/mod_offline_odbc.erl | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2007-10-06 Alexey Shchepin <alexey@process-one.net> + + * src/mod_offline_odbc.erl: Bugfix + 2007-10-01 Alexey Shchepin <alexey@process-one.net> * src/ejabberd_auth_pam.erl: Support for PAM authentication diff --git a/src/mod_offline_odbc.erl b/src/mod_offline_odbc.erl index 19e23585f..e645bad66 100644 --- a/src/mod_offline_odbc.erl +++ b/src/mod_offline_odbc.erl @@ -425,8 +425,9 @@ webadmin_user(Acc, User, Server, Lang) -> %% Returns as integer the number of offline messages for a given user count_offline_messages(LUser, LServer) -> + Username = ejabberd_odbc:escape(LUser), case catch odbc_queries:count_records_where( - LServer, "spool", "where username='" ++ LUser ++ "'") of + LServer, "spool", "where username='" ++ Username ++ "'") of {selected, [_], [{Res}]} -> list_to_integer(Res); _ -> |