mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-02 18:31:23 +01:00
Only clean domain names on cert save if given
This commit is contained in:
1 parent
dc2c05aeb3
commit
a6b7a7dd9d
1 file changed
+4
@@ -36,7 +36,9 @@ class Certificate extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Default for domain_names
|
// Default for domain_names
|
||||||
|
if (typeof this.domain_names !== "undefined") {
|
||||||
this.domain_names = cleanDomainNames(this.domain_names);
|
this.domain_names = cleanDomainNames(this.domain_names);
|
||||||
|
}
|
||||||
|
|
||||||
// Default for meta
|
// Default for meta
|
||||||
if (typeof this.meta === "undefined") {
|
if (typeof this.meta === "undefined") {
|
||||||
@@ -46,8 +48,10 @@ class Certificate extends Model {
|
|||||||
|
|
||||||
$beforeUpdate() {
|
$beforeUpdate() {
|
||||||
this.modified_on = now();
|
this.modified_on = now();
|
||||||
|
if (typeof this.domain_names !== "undefined") {
|
||||||
this.domain_names = cleanDomainNames(this.domain_names);
|
this.domain_names = cleanDomainNames(this.domain_names);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$parseDatabaseJson(json) {
|
$parseDatabaseJson(json) {
|
||||||
const thisJson = super.$parseDatabaseJson(json);
|
const thisJson = super.$parseDatabaseJson(json);
|
||||||
|
|||||||
Reference in new issue
Block a user