We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdbe95b commit c74f442Copy full SHA for c74f442
web/edit/server/hestiaweb/index.php
@@ -17,7 +17,11 @@
17
exec("mktemp", $mktemp_output, $return_var);
18
$new_conf = $mktemp_output[0];
19
$fp = fopen($new_conf, "w");
20
- fwrite($fp, str_replace("\r\n", "\n", $_POST["v_config"]));
+ $config = str_replace("\r\n", "\n", $_POST["v_config"]);
21
+ if (!str_ends_with($config, "\n")) {
22
+ $config .= "\n";
23
+ }
24
+ fwrite($fp, $config);
25
fclose($fp);
26
exec(
27
HESTIA_CMD . "v-change-sys-service-config " . $new_conf . " hestiaweb yes",
0 commit comments