From 4876a27232cdf4d77613a6e2e3b4c185c319908b Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Fri, 16 Aug 2013 21:25:56 +1000 Subject: Much better post modifiers: raw HTML, ban messages, etc. --- post.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'post.php') diff --git a/post.php b/post.php index 11792379..d160c7e3 100644 --- a/post.php +++ b/post.php @@ -421,19 +421,19 @@ if (isset($_POST['delete'])) { wordfilters($post['body']); $post['body'] = escape_markup_modifiers($post['body']); + if ($mod && isset($post['raw']) && $post['raw']) { + $post['body'] .= '1'; + } + if ($config['country_flags']) { if (!geoip_db_avail(GEOIP_COUNTRY_EDITION)) { error('GeoIP not available: ' . geoip_db_filename(GEOIP_COUNTRY_EDITION)); } - if ($country_code = @geoip_country_code_by_name('8.8.8.8')) { + if ($country_code = @geoip_country_code_by_name($_SERVER['REMOTE_ADDR'])) { $post['body'] .= '' . strtolower($country_code) . ''; } } - if ($mod && isset($post['raw']) && $post['raw']) { - $post['body'] = '' . $post['body'] . ''; - } - if (mysql_version() >= 50503) { $post['body_nomarkup'] = $post['body']; // Assume we're using the utf8mb4 charset } else { -- cgit v1.3