From 07e9b83a3de0264916a058b9cf180b91b297604f Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 24 Nov 2008 00:20:33 +0000 Subject: - updated all code to use the request class instead of any direct access to super globals - disabled super globals in common.php. See commit r9101 for more information - cleaned up/simplified a few lines along the way. git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/report.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/report.php') diff --git a/phpBB/report.php b/phpBB/report.php index 9e816b9a66..1997a55a15 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -28,7 +28,7 @@ $reason_id = request_var('reason_id', 0); $report_text = utf8_normalize_nfc(request_var('report_text', '', true)); $user_notify = ($user->data['is_registered']) ? request_var('notify', 0) : false; -$submit = (isset($_POST['submit'])) ? true : false; +$submit = request::is_set_post('submit'); if (!$post_id) { @@ -38,7 +38,7 @@ if (!$post_id) $redirect_url = append_sid('viewtopic', "f=$forum_id&p=$post_id") . "#p$post_id"; // Has the report been cancelled? -if (isset($_POST['cancel'])) +if (request::is_set_post('cancel')) { redirect($redirect_url); } -- cgit v1.2.1