Trim, I love your service, but please sanitize your inputs!!

February 5th, 2009 § 0 comments § permalink

I was replying to a friend on Twitter using trim, and I had a <script> tag in the post.  I realized when I submitted that the tag made everything after it in my tweet dissapear. If you want to see the actual tweets, you can find them in my twitter feed here: Matt Bernier’s Twitter Feed First thougt was, “No Way!”.  Second thought was, “What Else Can I do?”. So, I tried basic HTML with this tweet: <h2>Testing whether HTML breaks tr.im</h2> B/c my <script> tag did earlier</script> <span style="color:blue;"> ScreenShot coming</script> This got me this result: Then I tried an alert: <script type="text/javascript"> alert('does this work?'); </script> That got me this result: Then lastly, I tried a little more… » Read More

Where Am I?

You are currently browsing entries tagged with document body at Matt Bernier.


Warning: Cannot modify header information - headers already sent by (output started at /home/seoclear/mkbernier.com/wp-content/themes/oulipo/functions.php:23) in /home/seoclear/mkbernier.com/wp-content/themes/oulipo/footer.php on line 24