Bug in Tazpanel's installer |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Bug in Tazpanel's installer
- From: Brenton Edgar Scott <trixarian@xxxxxxxxx>
- Date: Sat, 21 Jul 2012 11:43:32 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=UJH91/uKIrAfu2p+2C7RaHe3HP21f/XBdFpkKfV3/Cc=; b=lbrsnylcukcJG3o//3uYEcTk3WQnAF+x9fzvsxvNpiiROzmI2hJ/QVmNfiaLTTz4ZX 6HO+HS5cUi9cOwyxhpcUvUFuIt1MV2EkBAXfsURuPO3hSU1LAIdrWtUuOjrPUN4+p7Fn LP9qCMBv9BUopn9XtIo2hivTeEI2FJelGOq993v/Mc8eFXwuMwwrxRnb4D4V680NrESJ PQsqo6ms9JpFloIUm/mBGf/1lWXQGWRgpOEtXg+O+9STkNpzztSJxPXImIBGlIiy5mkC c1QCytL+KidcNMTBbkjnXeeBbrHtvBXMbM3up3URixRHCm9xgtRx/WlLKBqhfLhjwxmO xU4A==
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/