summaryrefslogtreecommitdiff
blob: 19ff3b48e7415b9c410ae5dbc57a84f89f139587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/swift/account/server.py b/swift/account/server.py
index 4c08fc1..8acd5f5 100644
--- a/swift/account/server.py
+++ b/swift/account/server.py
@@ -253,7 +253,7 @@ class AccountController(object):
             account_list = json.dumps(data)
         elif out_content_type.endswith('/xml'):
             output_list = ['<?xml version="1.0" encoding="UTF-8"?>',
-                           '<account name="%s">' % account]
+                           '<account name="%s">' % saxutils.escape(account)]
             for (name, object_count, bytes_used, is_subdir) in account_list:
                 name = saxutils.escape(name)
                 if is_subdir: