NAME
WWW::Link_Controller::InfoStruc - read infostructure config.
DESCRIPTION
This is a simple module for reading infostructure configuration.
url_to_file
url_to_file takes a url as an argument. It then does a binary search on a reverse sorted array of url bases. It uses infostructure definitions to convert the URL into a filename.
This function should untaint it's result because it should use the infostructure definitions to ensure that we only do things to files we are supposed to do things to.
file_to_url
filename_to_url takes a correctly prepared filename as an argument. It then does a binary search on a reverse sorted array of filebases bases. It then uses infostructure definitions to convert the filename to a URL.
This function should untaint it's result because it should use the infostructure definitions to ensure that we only do things to files we are supposed to do things to.