Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 17554)
+++ wp-includes/post-template.php	(working copy)
@@ -1211,6 +1211,7 @@
 	$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
 	$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
 	<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
+	<input type="hidden" name="_wp_http_referer" value="' . esc_attr( get_permalink( $post ) ) . '" />
 	<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
 	</form>
 	';
