mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
bug fix: allow valid domains creation
This commit is contained in:
@@ -249,7 +249,7 @@ class backupSchedule:
|
||||
pass
|
||||
|
||||
for virtualHost in os.listdir("/home"):
|
||||
if match(r'^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$', virtualHost, M | I):
|
||||
if match(r'^[a-zA-Z0-9]*[a-zA-Z0-9-]{0,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+$', virtualHost, M | I):
|
||||
backupSchedule.createBackup(virtualHost, ipAddress, backupLogPath, port)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user