Index: trunk/wb/languages/EN.php
===================================================================
--- trunk/wb/languages/EN.php	(revision 14)
+++ trunk/wb/languages/EN.php	(revision 15)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: EN.php,v 1.17 2005/04/15 06:38:13 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -434,6 +434,7 @@
 $MESSAGE['TEMPLATES']['CHANGE_TEMPLATE_NOTICE'] = 'Please note: to change the template you must go to the Settings section';
 
 $MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH'] = 'Cannot include ../ in the folder name';
+$MESSAGE['MEDIA']['DIR_DOES_NOT_EXIST'] = 'Directory does not exist';
 $MESSAGE['MEDIA']['TARGET_DOT_DOT_SLASH'] = 'Cannot have ../ in the folder target';
 $MESSAGE['MEDIA']['NAME_DOT_DOT_SLASH'] = 'Cannot include ../ in the name';
 $MESSAGE['MEDIA']['NAME_INDEX_PHP'] = 'Cannot use index.php as the name';
@@ -498,4 +499,4 @@
 $MESSAGE['MOD_FORM']['REQUIRED_FIELDS'] = 'You must enter details for the following fields';
 $MESSAGE['MOD_FORM']['EXCESS_SUBMISSIONS'] = 'Sorry, this form has been submitted too many times so far this hour. Please retry in the next hour.';
 
-?>
\ No newline at end of file
+?>
Index: trunk/wb/admin/media/browse.php
===================================================================
--- trunk/wb/admin/media/browse.php	(revision 14)
+++ trunk/wb/admin/media/browse.php	(revision 15)
@@ -1,6 +1,6 @@
 <?php
 
-// $Id: browse.php,v 1.4 2005/04/02 06:25:37 rdjurovich Exp $
+// $Id$
 
 /*
 
@@ -48,6 +48,11 @@
 	$admin->print_error($MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH']);
 }
 
+if(!file_exists(WB_PATH.'/media'.$directory)) {
+	$admin->print_header();
+	$admin->print_error($MESSAGE['MEDIA']['DIR_DOES_NOT_EXIST']);
+}
+
 // Check to see if the user wanted to go up a directory into the parent folder
 if($admin->get_get('up') == 1) {
 	$parent_directory = dirname($directory);
