Removed check as input value is compared against dataset of validated values, and request is only processed further in case of a match. => this is unnecessary

This commit is contained in:
Joe7
2011-01-11 23:16:05 +01:00
parent 9364f0d931
commit 7f6d87166d

View File

@@ -44,11 +44,6 @@ class File_Proxy_Controller extends Controller {
$file_uri = substr($request_uri, strlen($var_uri));
// Make sure that we don't leave the var dir
if (strpos($file_uri, "/../") !== false) {
throw new Kohana_404_Exception();
}
list ($type, $path) = explode("/", $file_uri, 2);
if ($type != "resizes" && $type != "albums" && $type != "thumbs") {
throw new Kohana_404_Exception();