[Phpmyadmin-devel] create database: no check on the name ?

Other little thing: seems there are no checks made on the Create DB field (main.php3): if I type "fadfdppö 'fa'fdax" as db name, it will be created without problem: drwx------ 2 mysql daemon 35 Aug 28 00:45 fadfdppö \'fa\'fdax Shouldn't we add a check to see if the name is valid ? Olivier -- _________________________________________________________________ Olivier Mueller - om@8304.ch - PGPkeyID: 0E84D2EA - Switzerland qmail projects: http://omail.omnis.ch - http://webmail.omnis.ch

Olivier, this *is* a valid database name: the proof is that MySQL creates it! The valid names are defined here: http://www.mysql.com/doc/L/e/Legal_names.html But... phpMyAdmin has problems dealing with those bizarre names, at least in the left frame. IMHO, a new feature request for after 2.2.0 :) Marc "Olivier M." a écrit :
Other little thing: seems there are no checks made on the Create DB field (main.php3):
if I type "fadfdppö 'fa'fdax" as db name, it will be created without problem: drwx------ 2 mysql daemon 35 Aug 28 00:45 fadfdppö \'fa\'fdax
Shouldn't we add a check to see if the name is valid ?
-- Marc Delisle Service de l'informatique Collège de Sherbrooke, Québec
participants (2)
-
Marc Delisle
-
Olivier M.