com web/bugs: restrict the access of bugheader (plus remove the var_dump() call, silly me): www/bug.php
| From: | Ferenc Kovacs | Date: | Tue, 08 May 2012 23:20:56 +0000 |
| Subject: | com web/bugs: restrict the access of bugheader (plus remove the var_dump() call, silly me): www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13496@lists.php.net to get a copy of this message | ||
Commit: d32be4785328a32d3470ca6d31d9ccec80f867b7
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 9 May 2012 01:20:56 +0200
Parents: 12934ede3d12564185d2ae91fc54f92f57c5e133
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d32be4785328a32d3470ca6d31d9ccec80f867b7
Log:
restrict the access of bugheader (plus remove the var_dump() call, silly me)
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 04da418..4fea7e3 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -145,7 +145,6 @@ $show_bug_info = bugs_has_access($bug_id, $bug, $pw, $user_flags);
if ($edit == 2 && !$show_bug_info && $pw && verify_bug_passwd($bug_id,
bugs_get_hash($pw))) {
$show_bug_info = true;
}
-var_dump($show_bug_info);
if (isset($_POST['ncomment'])) {
/* Bugs blocked to user comments can only be commented by the team */
@@ -607,6 +606,9 @@ switch ($thanks)
display_bug_error($errors);
+if (!$show_bug_info) {
+ echo '<div id="bugheader"></div>';
+} else{
?>
<div id="bugheader">
<table id="details">
@@ -670,7 +672,9 @@ display_bug_error($errors);
</table>
</div>
-<?php if ($bug_id !== 'PREVIEW') {
+<?php
+}
+if ($bug_id !== 'PREVIEW') {
echo '<div class="controls">', "\n",
control(0, 'View'),
($bug['private'] == 'N' ? control(3, 'Add Comment') :
''),