|
|
|
| Hurry! Enter The Daily WTF's OMGWTF2 Contest by June 28th! - Prizes! Fame! Trophies! Do your worst: http://omg2.thedailywtf.com/ |
| « Literal DVD Burner | My Dearest Amy » |
The sort of software that’s used for research is the sort of software designed by engineers, not developers. With tight deadlines, corners get cut. This creates software that supports more shell injections, sql injections, and venous injections than useful functions. That’s bad, but all too common. This block that Koen found, on the other hand, is special.
if (substr($string,0,7) != "http://" ) { $string = "http://" . $string; } if (substr($string,0,7) == "http://" ) { $string = substr_replace($string,"",0,7); }
|
So this is the Hokey Cokey for the modern age?
"You put the http:// in "You put the http:// out "In, out, in, out, "You shake it all about!" |
| « Literal DVD Burner | My Dearest Amy » |