Fix: database name with underscore
This commit is contained in:
parent
8e32de74f1
commit
3239569860
@ -4,6 +4,7 @@
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2004 Sebastien DiCintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -393,7 +394,7 @@ while (($file = readdir($handle))!==false)
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function checkDatabaseName(databasename) {
|
||||
if (databasename.match(/[-;_\.]/)) { return false; }
|
||||
if (databasename.match(/[-;\.]/)) { return false; }
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user