Browse Source

Update database.php

FusionPBX 7 năm trước cách đây
mục cha
commit
d6e71b5418
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resources/classes/database.php

+ 1 - 1
resources/classes/database.php

@@ -116,7 +116,7 @@ include "root.php";
 				}
 
 				//sanitize the database name
-				$this->db_name = preg_replace('#[^a-zA-Z0-9_\-]#', '', $this->db_name);
+				$this->db_name = preg_replace('#[^a-zA-Z0-9_\-\.]#', '', $this->db_name);
 
 				if ($this->driver == "sqlite") {
 					if (strlen($this->db_name) == 0) {