diff --git a/osc/commandline.py b/osc/commandline.py
index e6bc3a0b..49e13449 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -565,13 +565,14 @@ class Osc(cmdln.Cmdln):
if cmd == 'attribute':
if not opts.attribute:
sys.exit('no attribute given to create')
- values=""
+ values= ''
if opts.set:
- for i in opts.set.split(','):
- values+="%s" % i
- d="""%s""" % (opts.attribute, values)
+ opts.set = opts.set.replace('&', '&').replace('<', '<').replace('>', '>')
+ for i in opts.set.split(','):
+ values += '%s' % i
+ d = '%s' % (opts.attribute, values)
url = makeurl(conf.config['apiurl'], attributepath)
- f=http_POST(url, data=d)
+ f = http_POST(url, data=d)
while 1:
buf = f.read(16384)
if not buf: break