Menu

#3 whitespace not being trimmed right makes voting hard

open
nobody
None
5
2008-10-08
2008-10-08
No

In doing a vote you have to type in the name exactly, without any excess leading or trailing whitespace.

This is due to a bug in the code. It says

choice.trim();

but the trim function returns the new string, it doesn't modify choice. It needs to be something like

choice = choice.trim();

There are several other trim calls in the code that need to be fixed similarly.

Discussion


Log in to post a comment.