Fix: database name with underscore

This commit is contained in:
Regis Houssin 2010-03-30 14:35:18 +00:00
parent 8e32de74f1
commit 3239569860

View File

@ -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;
}