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:
parent
08f12721fe
commit
77efad5eb8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user