فهرست منبع

Update database.php

FusionPBX 7 سال پیش
والد
کامیت
4abfe3b8f4
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      resources/classes/database.php

+ 1 - 1
resources/classes/database.php

@@ -116,7 +116,7 @@ include "root.php";
 				}
 				}
 
 
 				//sanitize the database name
 				//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 ($this->driver == "sqlite") {
 					if (strlen($this->db_name) == 0) {
 					if (strlen($this->db_name) == 0) {