Commit b5874852 authored by jcnventura's avatar jcnventura

Fix #472920: deny access to paths starting with print/print

parent a8feb742
......@@ -93,6 +93,9 @@ function print_menu() {
'access arguments' => array('access print'),
'type' => MENU_CALLBACK,
);
$items[PRINT_PATH . '/' . PRINT_PATH] = array(
'page callback' => 'drupal_access_denied',
);
$items['admin/settings/print'] = array(
'title' => 'Printer, e-mail and PDF versions',
'description' => 'Adds a printer-friendly version link to content and administrative pages.',
......
......@@ -63,6 +63,9 @@ function print_mail_menu() {
'access arguments' => array('access send to friend'),
'type' => MENU_CALLBACK,
);
$items[PRINTMAIL_PATH . '/' . PRINTMAIL_PATH] = array(
'page callback' => 'drupal_access_denied',
);
$items['admin/settings/print/email'] = array(
'title' => 'e-mail',
'page callback' => 'drupal_get_form',
......
......@@ -84,6 +84,9 @@ function print_pdf_menu() {
'access arguments' => array('access PDF version'),
'type' => MENU_CALLBACK,
);
$items[PRINTPDF_PATH . '/' . PRINTPDF_PATH] = array(
'page callback' => 'drupal_access_denied',
);
$items['admin/settings/print/pdf'] = array(
'title' => 'PDF',
'page callback' => 'drupal_get_form',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment