Commit 801bc8e0 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #321063 by eMPee584, Kars-T, pillarsdotnet: Path book/export/html/N with...

Issue #321063 by eMPee584, Kars-T, pillarsdotnet: Path book/export/html/N with a non-book nid should abort and return 404 not found.
parent 62b6016c
......@@ -77,8 +77,11 @@ function book_export_html($nid) {
if (isset($node->book)) {
$tree = book_menu_subtree_data($node->book);
$contents = book_export_traverse($tree, 'book_node_export');
return theme('book_export_html', $node->title, $contents, $node->book['depth']);
}
else {
drupal_not_found();
}
return theme('book_export_html', $node->title, $contents, $node->book['depth']);
}
else {
drupal_access_denied();
......
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