Descriptioncvox2: Avoid uncaught exception on invalid input type.
<input type='invalidType'> would cause an uncaught exception in the
output
code. Whitelist supported types and default invalid types to 'text'.
NOTE: The mappings in the whitelist currently look a bit pointless.
A follow-up cl to clean up duplicated messages will make this more
useful, however.
BUG=None
R=dtseng@chromium.org
Committed: https://crrev.com/54b0ed7b668c16b11aedf0858c8e3619d0587f91
Cr-Commit-Position: refs/heads/master@{#350819}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix typo #Patch Set 3 : rebase #
Depends on Patchset: Messages
Total messages: 9 (3 generated)
|