--- protected_node.module 2009-02-28 10:35:59.000000000 +0100 +++ protected_node.module 2010-11-03 11:30:49.000000000 +0100 @@ -186,9 +186,9 @@ function protected_node_nodeapi(&$node, } if ($node->uid !== $user->uid) { - // If node is protected and not teaser nor page view and not owner of node + // If node is protected and not teaser nor page view and not owner of node or not a search result page if (!isset( $_SESSION['_protected_node']['passwords'][$node->nid] )) { - if (!$arg) { + if (arg(0) != 'search') { $_SESSION['_protected_node']['current'] = $node->nid; $destination = drupal_get_destination(); drupal_goto( 'protected-node', $destination );