Trim Dynamic URL Parameters

If you ever build URL parameters dynamically (using variables or database columns) make sure to use Trim() to trim any leading or trailing spaces from those values. URL length is limited, and many browsers (particularly older ones) have problems with long query strings. Any saved space helps. (Applies to: ColdFusion All)

Leave a Reply