MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2014-02-14, 18:17:07

Title: Unable to login to database containing "-" or "."
Post by: Spacedust on 2014-02-14, 18:17:07
How to reproduce:

Create database like this:

user-mydatabase

or

user-mydatabase.test

then try to login to phpMyAdmin by clicking the black dot near database name.

You will get message unable to login to MySQL server.

That's why we need to block - and . inside database names !
Title: Re: Unable to login to database containing "-" or "."
Post by: chrisf on 2014-02-14, 20:48:49
+1.  A simple regex alphanumeric check would work, allowing a-z, 0-9 but no other characters.
Title: Re: Unable to login to database containing "-" or "."
Post by: MRatWork on 2014-02-15, 03:50:14
As I know, mysql database name only with alphanumeric plus _ (underline) and . (dot).
Title: Re: Unable to login to database containing "-" or "."
Post by: Spacedust on 2014-02-17, 14:26:55
Yes, but customers are able to create such databases inside Kloxo and then they are reporting they cannot login. People are dumb you know ;)
Title: Re: Unable to login to database containing "-" or "."
Post by: MRatWork on 2014-02-17, 14:47:55
Next release of 6.5.1.a will include validate for client name, database and password entry.