Closed (fixed)
Project:
Protected Node
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2010 at 06:38 UTC
Updated:
1 May 2011 at 03:21 UTC
When no destination is given to the protected-node page callback, the page is rendered twice. The whole page layout shows up twice beneath each other with in each an Access Denied message.
function protected_node_enterpassword( ) {
if (!isset( $_GET['destination'] )) {
// Illegal call
watchdog( 'protected_node', 'Illegal call to /protected-node', array(), WATCHDOG_WARNING );
drupal_access_denied();
}
...
I think there is an "exit;" missing after drupal_access_denied();
Comments
Comment #1
gooddesignusa commentedAlso having this issue. It actually prints the whole page twice. so there are 2 's on a page.
Comment #2
AlexisWilke commentedThank you. I checked the fix in. Works great 8-)
Alexis Wilke