mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-15 02:56:49 +01:00
Fix Auto-SSL config injection appending garbage to acmeEmail line
The string replace matched only 'adminEmails' keyword instead of the full existing line 'adminEmails root@localhost', causing the remaining ' root@localhost' to trail onto the acmeEmail line and break ACME account registration.
This commit is contained in:
@@ -507,7 +507,7 @@ module cyberpanel_ols {
|
||||
content = f.read()
|
||||
if 'autoSSL' not in content:
|
||||
content = content.replace(
|
||||
'adminEmails',
|
||||
'adminEmails root@localhost',
|
||||
'adminEmails root@localhost\nautoSSL 1\nacmeEmail admin@cyberpanel.net',
|
||||
1
|
||||
)
|
||||
|
||||
@@ -4602,7 +4602,7 @@ pm.max_spare_servers = 3
|
||||
content = f.read()
|
||||
if 'autoSSL' not in content:
|
||||
content = content.replace(
|
||||
'adminEmails',
|
||||
'adminEmails root@localhost',
|
||||
'adminEmails root@localhost\nautoSSL 1\nacmeEmail admin@cyberpanel.net',
|
||||
1
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user