Merge pull request #10275 from eileenmcnaughton/4.7.19-rc
[civicrm-core.git] / install / index.php
index a98269e903b754073e09bccf4a5b72d23cda7d8c..03c4f05a50eed05be38605c0e2ac2f56882cad60 100644 (file)
@@ -36,7 +36,7 @@
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- * Changes and modifications (c) 2007-2015 by CiviCRM LLC
+ * Changes and modifications (c) 2007-2017 by CiviCRM LLC
  *
  */
 
@@ -469,9 +469,9 @@ class InstallRequirements {
         $testDetails = array(
           ts("MySQL %1 Configuration", array(1 => $dbName)),
           ts("Is the provided database name valid?"),
-          ts("The database name provided is not valid. Please use only 0-9, a-z, A-Z and _ as characters in the name."),
+          ts("The database name provided is not valid. Please use only 0-9, a-z, A-Z, _ and - as characters in the name."),
         );
-        if (!CRM_Core_DAO::requireValidDBName($databaseConfig['database'])) {
+        if (!CRM_Core_DAO::requireSafeDBName($databaseConfig['database'])) {
           $this->error($testDetails);
           return FALSE;
         }