Added redirect if product is not defined (redirects users accessing the URL directly to the mozilla.com support page).

git-svn-id: svn://10.0.0.236/trunk@194681 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mike.morgan%oregonstate.edu 2006-04-19 15:44:25 +00:00
parent 71b05733da
commit e7ff4bf0eb

View File

@ -6,6 +6,13 @@
*/
$sql['product'] = !empty($_POST['product'])?mysql_real_escape_string($_POST['product']):(!empty($_GET['product'])?mysql_real_escape_string($_GET['product']):null);
$sql['product_id'] = $app->getAppIdByName($sql['product']);
// If no matching product is found, redirect them to the support page.
if (empty($sql['product_id'])) {
header('Location: http://www.mozilla.com/support/');
exit;
}
$intends = $app->getIntends($sql['product_id']);
$issues = $app->getIssues($sql['product_id']);