Significant Code Error WRT to Password-Protected Posts

Skip to first unread message


Nov 9, 2011, 10:36:47 AM11/9/11

I've been working on a project involving, and the last step
was using password-protection on a post level. I tested this feature
out and got some very strange results. Basically, when I add a
password to a post, and then visit the post and enter the correct
password, I get redirected here:

I checked the single.php template and, sure enough, the password form
has the following code:

<form method="post" action="">

I went ahead and tested this on a site at, and had the same

It looks like that some point the code was corrupted with a call to a
script on the site.

The fix, for me, was simply to change the code to <form method="post"

I'm surprised that I can't find any other reports of this bug, but I
think it's significant enough to mention here. Is there a bug
reporting system that I should put this in?

Martha Burtis

Eddie A Tejeda

Nov 9, 2011, 11:23:45 AM11/9/11
Thank you for this report. This was something that has been fixed in the development code base for some time, but it never made it to the public repository. I made an emergency release v 3.1.2.

It seems that when I added support for password protection, I copied some sample code and didn't change the URL. I was concerned it might have been a security issue, but it appears the error was in the initial code. Here is the diff.

Eddie A Tejeda

You received this message because you are subscribed to the Google Groups "" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply all
Reply to author
0 new messages