Topic: set_default_user & csrf_token
In the set_default_user function ... the random key generated for the csrf_token (the portion of that function which updates the online list). Sometimes the key generated includes single quotations, triggering a 1064 error in mysql ... I imagine due to the use of single quotes in the "VALUES" of the query string.
If the csrf value is escaped the error ceases. However, I don't know if that will adversly affect the other scripts (maybe when checking or comparing the values at another point, one value being escaped and the other not). Is it safe to use a db->escape on it?
--
Also, in the process of trying to figure out the problem I noticed the that "online" table's fields were not utf8, so I changed them to utf8 to see if that would rectify the situation. Should that table "not" be utf8? Do I have to change it back? The database was new for the installation, maybe something was missed in the install scripts.