Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cannot believe that developer forgot to include this at the end of shortening process:

if(strShortenedURL.Length > strURL.Length) { //Handle this case //donot use shortened version, use original URL }



It's not in their interest to do so, as it would leave already short links without them being able to track them




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: