From 2819e203902392e229564e734194c5c8f8e26db5 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 17 Oct 2010 13:00:16 +0000 Subject: Fixes #2563 - setup autoload in elgglib.php so exceptions and other classes are available as soon as possible git-svn-id: http://code.elgg.org/elgg/trunk@7091 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'engine/lib/input.php') diff --git a/engine/lib/input.php b/engine/lib/input.php index 324b0cec4..fe481b24b 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -83,29 +83,6 @@ function filter_tags($var) { return trigger_plugin_hook('validate', 'input', null, $var); } -/** - * Sanitise file paths for input, ensuring that they begin and end with slashes etc. - * - * @param string $path The path - * @return string - */ -function sanitise_filepath($path, $append_slash = TRUE) { - // Convert to correct UNIX paths - $path = str_replace('\\', '/', $path); - $path = str_replace('../', '/', $path); - - // Sort trailing slash - $path = trim($path); - // rtrim defaults plus / - $path = rtrim($path, " \n\t\0\x0B/"); - - if ($append_slash) { - $path = $path . '/'; - } - - return $path; -} - /** * Validates an email address. * -- cgit v1.2.3