FAQ
sniper Sun Aug 19 16:37:29 2007 UTC

Modified files:
/pear/Bugtracker/bugs report.php
Log:
- Display error for invalid package name

http://cvs.php.net/viewvc.cgi/pear/Bugtracker/bugs/report.php?r1=1.18&r2=1.19&diff_format=u
Index: pear/Bugtracker/bugs/report.php
diff -u pear/Bugtracker/bugs/report.php:1.18 pear/Bugtracker/bugs/report.php:1.19
--- pear/Bugtracker/bugs/report.php:1.18 Sun Aug 5 12:18:18 2007
+++ pear/Bugtracker/bugs/report.php Sun Aug 19 16:37:29 2007
@@ -17,7 +17,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License
- * @version $Id: report.php,v 1.18 2007/08/05 12:18:18 sniper Exp $
+ * @version $Id: report.php,v 1.19 2007/08/19 16:37:29 sniper Exp $
*/

/**
@@ -390,6 +390,14 @@

$package = !empty($_REQUEST['package']) ? $_REQUEST['package'] : '';

+if (!is_string($package)) {
+ response_header('Report - Problems');
+ $errors[] = 'Invalid package name passed. Please fix it and try again.';
+ display_bug_error($errors);
+ response_footer();
+ exit;
+}
+
if ($site != 'php' && !package_exists($package)) {
$errors[] = 'Package "' . htmlspecialchars($package) . '" does not exist.';
response_header("Report - Invalid bug type");

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-cvs @
categoriesphp
postedAug 19, '07 at 4:37p
activeAug 19, '07 at 4:37p
posts1
users1
websitepear.php.net

1 user in discussion

Jani Taskinen: 1 post

People

Translate

site design / logo © 2018 Grokbase