From 4d1dc45a7cbc6ab1945f769913d8209a986dabf4 Mon Sep 17 00:00:00 2001 From: antedeguemon Date: Sat, 29 Jul 2017 20:23:18 -0300 Subject: [PATCH 1/2] Bugfix: allow mods to edit poster name at edit post page --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index e51bbd7d..5b7dfa3a 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1547,7 +1547,7 @@ function mod_edit_post($board, $edit_raw_html, $postID) { else $query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name, `email` = :email, `subject` = :subject, `body_nomarkup` = :body WHERE `id` = :id', $board)); $query->bindValue(':id', $postID); - $query->bindValue('name', $_POST['name']); + $query->bindValue(':name', $_POST['name']); $query->bindValue(':email', $_POST['email']); $query->bindValue(':subject', $_POST['subject']); $query->bindValue(':body', $_POST['body']); From b766b958d13ac1cfdee9f403527842cb13965631 Mon Sep 17 00:00:00 2001 From: antedeguemon Date: Wed, 2 Aug 2017 00:38:23 -0300 Subject: [PATCH 2/2] Fix: cache flushing to avoid installation error --- install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.php b/install.php index ff994010..08c64f20 100644 --- a/install.php +++ b/install.php @@ -900,6 +900,10 @@ if ($step == 0) { $instance_config .= "\n"; if (@file_put_contents('inc/instance-config.php', $instance_config)) { + // flushes opcache if php >= 5.5.0 or opcache is installed via PECL + if (function_exists('opcache_invalidate')) { + opcache_invalidate('inc/instance-config.php'); + } header('Location: ?step=4', true, $config['redirect_http']); } else { $page['title'] = 'Manual installation required';