Archive for August, 2005

Dealing with Spam Injection

I use lots of mail scripts in php. Unfortunately, if you allow users to enter their email address, suddenly you are vulnerable to spam injection. For an explanation as to why, see this really good article.

There’s a simple way to fix this for your mail scripts.

Just using some quick replacement on your strings, you can do the following:

$email = $_POST['email'];
$strip_chars = array("\r","\n");
$email = str_replace($strip_chars, "", $email);

And suddenly you’re safe again.

Comments

Beloved Ibis Mojo For Sale

I have to sell my Ibis. Gradschool and a fulltime job do not afford me the time (ahem) to be on this bike nearly as much as I’d like. Complete component listing follows….

Ibis Steel Mojo (large)
Manituo Skareb Elite 2003 fork (disk only)
Cannondale EX2 2×9 (44,29) crank
Shimano XT octalink BB
Shimano LX cassette
Shram pc 55 chain
Shimano XTR rear derailure
Shimano XT front dearilure
Shimano XT integrated shifter pods and levers
Avid Single Digit Ti rear break
Avid 7″ 2004 Mechanical disc break (Front)
DT Onyx Hub with Mavic 717 disc rim (Front)
Shimano XTR hub with Bontrager Valiant rim (rear)
Chris King head set
Easton EA 50 stem
Thompson Elite seat post
WTB saddle (forget which model, but it’s light)
Continental Explorer Protection 2.1 (front)
WTB NanoRaptor 2.1 (rear)
Grips are locking with a yeti pattern

The bike is in great shape. I bought the frame used one year ago from somebody who had repainted it. The only major issue that the frame has was a chain suck incident. I sanded the area and lightly spray painted it to protect it from rust. While I can’t vouch for the person who rode the frame before me, I’ve primarly used this bike for training- mostly hill climbing on dirt rodes and commuting to work.

Comments (2)