com web/bugs: - Fixed private bug toggle: www/bug.php

From: Date: Sat, 30 Jun 2012 19:02:20 +0000
Subject: com web/bugs: - Fixed private bug toggle: www/bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13812@lists.php.net to get a copy of this message
Commit: f0c483bff2108abc9bb294026db0a900ac8448b7 Author: Felipe Pena <felipensp@gmail.com> Sat, 30 Jun 2012 16:02:20 -0300 Parents: e64ca427aee9c6320d5ec6044dcc7ea873b625df Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=f0c483bff2108abc9bb294026db0a900ac8448b7 Log: - Fixed private bug toggle Changed paths: M www/bug.php Diff: diff --git a/www/bug.php b/www/bug.php index 94322b8..314b89f 100644 --- a/www/bug.php +++ b/www/bug.php @@ -161,9 +161,8 @@ if (!empty($_POST['in'])) { if ($user_flags & BUGS_DEV_USER) { $block_user = isset($_POST['in']['block_user_comment']) ? 'Y' : 'N'; } - // security devs can change the private flag, if the field is set 'N' will make it private, everything else 'Y'. fail secure - if ($is_security_developer && isset($_POST['in']['private'])) { - $is_private = $_POST['in']['private'] == 'N' ? 'N': 'Y'; + if ($is_security_developer) { + $is_private = isset($_POST['in']['private']) ? 'Y': 'N'; } }

« previous php.webmaster (#13812) next »