From 3868004169decf757dfa3f29c8624e5c6e8e5715 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Tue, 7 Feb 2012 00:46:20 +1100 Subject: [PATCH] double escape with web editor (on permissions error) --- mod.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;