Periods in URL causes ColdFusion error
- by ethanh
I am currently having issues with users (or bots, not sure) visiting non-existent links that have three periods in a sub-directory.
For example, if someone goes to:
http://www.example.com/.../test/index.cfm?
Then I receive the following error:
String index out of range: -1 null
The error occurred on line -1.
I have tested it with just 1 period and just 2 periods and it goes straight to a 404 error. Any link though that has 3 or more periods will cause this error.
My question is what can I do to stop this from happening? My thoughts are to send them to a 404 error page or redirect them. How could I do that?
I am running ColdFusion 8.0.1 on Microsoft-IIS/7.0.
Thanks!