CGI: don't accept wpm or freq = 0

This commit is contained in:
Fabian Kurz 2020-05-14 21:05:34 +02:00
parent c101f224a5
commit f514a80e7d
1 changed files with 4 additions and 0 deletions

View File

@ -378,6 +378,10 @@ int main (int argc, char** argv) {
strcat(text, " ");
urldecode(text);
if (cw.wpm == 0 || cw.freq == 0) {
exit(1);
}
flush_ogg(&cw);
#endif