Periods in URL causes ColdFusion error

Posted by ethanh on Stack Overflow See other posts from Stack Overflow or by ethanh
Published on 2013-10-24T21:51:45Z Indexed on 2013/10/24 21:53 UTC
Read the original article Hit count: 228

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about coldfusion-8