Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

util_uri_is_evil() Function

The util_uri_is_evil function checks a specified URI for insecure path characters. Insecure path characters include //, /./, /../ and/., /.. (also for Windows./) at the end of the URI. Use this function to see whether a URI requested by the client is insecure.


int util_uri_is_evil(char *t);

Return Values

1 if the URI is insecure, or 0 if the URI is secure.


char *t is the URI to be checked.

See Also

util_uri_parse() Function, util_uri_escape() Function