1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- request_interactive_review: strip() user input

This commit is contained in:
Marcus Huewe 2010-08-16 13:51:19 +02:00
parent 08f12721fe
commit 77efad5eb8

View File

@ -5113,7 +5113,7 @@ def request_interactive_review(apiurl, request):
raise oscerr.UserAbort()
else:
state_map = {'a': 'accepted', 'd': 'declined', 'r': 'revoked'}
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl)
mo = re.search('^([adr])(?:\s+-m\s+(.*))?$', repl.strip())
if mo is None:
print >>sys.stderr, 'invalid choice: \'%s\'' % repl
continue