1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-02 17:56:15 +01:00

Reverting Sascha's unicode attempt. This made 'osc submit' always fail with

uncaught exception: Fatal error: Start tag expected, '<' not found at :1.
This commit is contained in:
Juergen Weigert 2011-03-07 18:16:10 +01:00
parent 45a7a84967
commit 44e4eb9334

View File

@ -3512,7 +3512,12 @@ def create_submit_request(apiurl,
orev or show_upstream_rev(apiurl, src_project, src_package),
targetxml,
options_block,
cgi.escape(unicode(message, "utf8")))
cgi.escape(message))
# Don't do cgi.escape(unicode(message, "utf8"))) above.
# Promoting the string to utf8, causes the post to explode with:
# uncaught exception: Fatal error: Start tag expected, '<' not found at :1.
# I guess, my original workaround was not that bad.
u = makeurl(apiurl, ['request'], query='cmd=create')
f = http_POST(u, data=xml)