<span style="font-family: courier new,monospace;">OK, my next query for a code/module recommendation is:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">'What is the best/easiest way to normalize a directory from what</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> someone may have provided into something thats potentially real.'</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Ie. eliminate '../' scenarios.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">For example, something that translates the following (and all other nasties)...</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">If our home directory is '/home/myaccount',<br>and someone provides '../../etc/passwd'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">whats the easiest way to figure out that the real path will<br>end up being</span> '<span style="font-family: courier new,monospace;">/etc/passwd</span>' ?<br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TIA</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Fulko</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">