Fork me on GitHub

Saturday, March 29, 2008

Blog / General / News / Antispam and ’session’ bugs hopefully gone

Antispam and ’session’ bugs hopefully gone

Commit 135 should finally fix this really annoying issue

from the commit message:

the infamous “session bug” with antispam should be in fact a bug with prettyurls;

some themes might refer their images (or, generally speaking, their resources) via relative paths, which are translated into wrong urls when prettyurls are enabled;


 <img src="my-img.png" alt="image" /> 

should refer to an image in your blog root, for instance

but when you’re on a comment, with prettyurls, URL will be:

and therefore the relative path would be translated into

now, this was previously ignored by the plugin, which would have served instead the page at

so, your entry comment page

this led to secondary requests to the same comment page, which made the plugin regenerate the question!

the bug looked random because when those request came BEFORE the main page had been rendered the question stored in session would have been still correct; otherwise, if those came AFTER, the correct question would have been overwritten, and therefore the result would have been reported as wrong even though at a first glance it was not;

of course, computes are never liars, it was really comparing the answer to the wrong question, which had been already overwritten!

now prettyurls correctly 404s when you point to a resource with a wrong path: update your themes if they are suffering from this bug (hey, really, you did not wondered why some images were not displayed sometimes??) :)

now people are still reporting some issues with passwords, strange, the wp_hash should be ok now.


Add comment

Fill out the form below to add your own comments

User data

Add your comment