summaryrefslogtreecommitdiffstats
path: root/wp-admin/includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-16 12:33:45 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-16 12:33:45 +0000
commit74340c7281fac695c73ce5845c41355c29e8f6a9 (patch)
tree36643c23e311a4e27c34e3af469276e75d6cc216 /wp-admin/includes
parentef1c2e3e754485aaf6d2d7126d9f0b7474e7587b (diff)
downloadwordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.tar.gz
wordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.tar.xz
wordpress-mu-74340c7281fac695c73ce5845c41355c29e8f6a9.zip
WP Merge, page template validation
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1294 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/includes')
-rw-r--r--wp-admin/includes/file.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index a399a5a..01da1d0 100644
--- a/wp-admin/includes/file.php
+++ b/wp-admin/includes/file.php
@@ -56,22 +56,6 @@ function get_temp_dir() {
return '/tmp/';
}
-function validate_file( $file, $allowed_files = '' ) {
- if ( false !== strpos( $file, '..' ))
- return 1;
-
- if ( false !== strpos( $file, './' ))
- return 1;
-
- if (':' == substr( $file, 1, 1 ))
- return 2;
-
- if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) )
- return 3;
-
- return 0;
-}
-
function validate_file_to_edit( $file, $allowed_files = '' ) {
$file = stripslashes( $file );