plugins/SpecialAdmin.php
changeset 511 f88c8c79d784
parent 504 bc8e0e9ee01d
child 519 94214ec0871c
--- a/plugins/SpecialAdmin.php	Wed Mar 26 16:51:42 2008 -0400
+++ b/plugins/SpecialAdmin.php	Wed Mar 26 20:20:22 2008 -0400
@@ -312,7 +312,7 @@
     
     if ( is_dir(ENANO_ROOT . '/' . $_POST['avatar_directory']) )
     {
-      if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*$/', $_POST['avatar_directory']) )
+      if ( preg_match('/^([A-z0-9_-]+)(\/([A-z0-9_-]+))*\/?$/', $_POST['avatar_directory']) )
       {
         setConfig('avatar_directory', $_POST['avatar_directory']);
       }