mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 01:07:05 +02: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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user