Closed ehoch closed 10 years ago
Thanks for these patches! Sorry it's been taking me so long to review, I managed to break my collarbone since the last time we spoke :grimacing:
I merged the permalink patch but I'm going to think about this one for a bit. There are probably other auth headers that should be excluded by default and I'd like to expose the list somehow so that people can tailor it to their own applications.
Ouch, sorry to hear that.
We can make a headers_blacklist config option that defaults to HTTP_COOKIE? Not sure what syntax you'd want.
Did you want me to take a stab at it or will you be able to helm?
@joshfrench Just checking in to see where you're at with this? Hate to bother you with your recent injury but this spam is getting scary for me..
Ack, sorry man. Tell you what: rather than make you wait for me, I just gave you commit access :)
If I were going to implement this, I'd probably do it as a blacklist that took either an array or a proc and defaulted to at least ['HTTP_COOKIE']
. Probably set it in config.exclude_headers
or the like. Up to you, though!
@joshfrench Okay thanks man. I will go ahead and rework it to be a customizable array and do the PR myself. Definitely appreciate the trust on this one..
No worries! Happy to have someone with the time & motivation to work on it.
Done with the configurable excluded headers. I'm actually testing this one out in the wild using one of my sites. Once Akismet gives me the thumbs up we'll merge it in (and hopefully you can do a new gem for me).
Please do a little code review, but this will send along any HTTP_* headers (except COOKIE) to Akismet. In my support tickets with them they said these additional data points are extremely useful.