backend/server/handlers/xmlrpc/abrt.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit fac140a96d9d5ef694d2892e8c7d09f6a52061e4
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Wed Feb 27 14:54:03 2013 +0100
abrt: strip extraneous '\n' from username
diff --git a/backend/server/handlers/xmlrpc/abrt.py
b/backend/server/handlers/xmlrpc/abrt.py
index 591bc47..414f151 100644
--- a/backend/server/handlers/xmlrpc/abrt.py
+++ b/backend/server/handlers/xmlrpc/abrt.py
@@ -227,6 +227,9 @@ class Abrt(rhnHandler):
f.close()
if crash_file['filename'] in self.watched_items:
+ # 'username' contains an extra '\n' at the end
+ if crash_file['filename'] == 'username':
+ filecontent = filecontent.strip()
st = rhnSQL.Statement(_query_update_watched_items %
crash_file['filename'])
h = rhnSQL.prepare(st)
h.execute(filecontent = filecontent, crash_id = crash_id)
Show replies by thread