diff --git a/mod.php b/mod.php index 3d189323..065d3d3c 100644 --- a/mod.php +++ b/mod.php @@ -1855,6 +1855,8 @@ header('Location: ?/config' . $b['uri'], true, $config['redirect_http']); exit; } else { + $config_append = htmlentities($config_append); + if($config['minify_html']) $config_append = str_replace("\n", ' ', $config_append); $page = Array(); @@ -1863,7 +1865,7 @@ $page['body'] = '

Tinyboard could not write to inc/instance-config.php with the ammended configuration, probably due to a permissions error.

You may proceed with these changes manually by copying and pasting the following code to the bottom of inc/instance-config.php:

- + '; echo Element('page.html', $page); exit;