svn: /web/php-bugs/trunk/ include/functions.php www/report.php

From: Date: Mon, 08 Nov 2010 10:13:20 +0000
Subject: svn: /web/php-bugs/trunk/ include/functions.php www/report.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9206@lists.php.net to get a copy of this message
aharvey Mon, 08 Nov 2010 10:13:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305196 Log: Fix bug #53189 (Bug reporting from manual does not populate bug type or reference manpage). Patch by Richard Quadling. Bug: http://bugs.php.net/53189 (Open) Bug reporting from manual does not populate bug type or reference manpage. Changed paths: U web/php-bugs/trunk/include/functions.php U web/php-bugs/trunk/www/report.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2010-11-08 10:05:39 UTC (rev 305195) +++ web/php-bugs/trunk/include/functions.php 2010-11-08 10:13:20 UTC (rev 305196) @@ -417,11 +417,13 @@ } echo ">All</option>\n"; } elseif (!$current) { - $current = 'Bug'; + $current = 'bug'; + } else { + $current = strtolower($current); } foreach ($bug_types as $k => $v) { - echo '<option value="', $k, '"', (($current == $k) ? ' selected="selected"' : ''), ">{$k}</option>\n"; + echo '<option value="', $k, '"', (($current == strtolower($k)) ? ' selected="selected"' : ''), ">{$k}</option>\n"; } } Modified: web/php-bugs/trunk/www/report.php =================================================================== --- web/php-bugs/trunk/www/report.php 2010-11-08 10:05:39 UTC (rev 305195) +++ web/php-bugs/trunk/www/report.php 2010-11-08 10:13:20 UTC (rev 305196) @@ -306,10 +306,10 @@ $_POST['in'] = array( 'package_name' => '', - 'bug_type' => '', + 'bug_type' => isset($_GET['bug_type']) ? clean($_GET['bug_type']) : '', 'email' => '', 'sdesc' => '', - 'ldesc' => '', + 'ldesc' => isset($_GET['manpage']) ? clean("\n---\nFrom manual page: http://www.php.net/" . ltrim($_GET['manpage'], '/') . "\n---\n") : '', 'repcode' => '', 'expres' => '', 'actres' => '',

« previous php.webmaster (#9206) next »