Hi Dne Fri, 10 Oct 2014 12:27:42 +0200 Paul Gevers <[email protected]> napsal(a):
> I am trying to fix some issues with dbconfig-common before the freeze... > (Hope I can get it to work). > > On Mon, 16 Nov 2009 14:36:38 +0100 Michal Čihař <[email protected]> wrote: > > it looks like dbconfig-common does not escape database name. When user > > enters something like foo-bar as database name, it is passed to MySQL > > without escaping and it fails: > > > > mysql said: ERROR 1064 (42000) at line 1: You have an error in your SQL > > syntax; check the manual that corresponds to your MySQL server version > > for the right syntax to use near '-bar' at line 1 > > Is phpmyadmin (I assume you caught this error in that package) using a > custom template or is it using the dbconfig-common templates? In the > former case, this might be related or the same as bug 716841. It's not using own templates, but I don't think the problem here is with templates. It's rather there are missing quotes around database name in dbc_mysql_createdb. -- Michal Čihař | http://cihar.com | http://blog.cihar.com
signature.asc
Description: PGP signature

