Testing fixes for security improvement, thread safety, and memory management.
This commit is contained in:
@ -174,7 +174,8 @@ class driver(speechDriver):
|
||||
word = word.replace('fenrirVoice', str(utterance['voice']))
|
||||
word = word.replace('fenrirPitch', str(utterance['pitch']))
|
||||
word = word.replace('fenrirRate', str(utterance['rate']))
|
||||
word = word.replace('fenrirText', str(utterance['text']))
|
||||
# Properly quote text to prevent command injection
|
||||
word = word.replace('fenrirText', shlex.quote(str(utterance['text'])))
|
||||
popenSpeechCommand[idx] = word
|
||||
|
||||
try:
|
||||
|
Reference in New Issue
Block a user