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:
parent
45a7a84967
commit
44e4eb9334
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user