Bug in Tazpanel's installer

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


Users can't user certain punctuation marks. I traced it
to /var/www/tazpanel/lib/user.js line 79:
var incharRegex = new RegExp("^[A-Za-z0-9!@#$%^&*()_]{3,40}$");

The above regular expression isn't broad enough to cover everything and
may also break when users use non-alphanumerical passwords or usernames.

A replacement (for now) would be:
var incharRegex = new RegExp("^[A-Za-z0-9\W_]{3,40}$");

-- 
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/