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:
parent
71b05733da
commit
e7ff4bf0eb
@ -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']);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user