aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/create_listing_file.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/create_listing_file.php b/admin/create_listing_file.php
index 97e061be1..f6e2581a4 100644
--- a/admin/create_listing_file.php
+++ b/admin/create_listing_file.php
@@ -38,6 +38,13 @@ function get_dirs( $rep, $indent, $level )
and $file != "thumbnail" )
{
$sub_rep[$i++] = $file;
+ if ( !preg_match( '/^[a-zA-Z0-9-_.]+$/', $file ) )
+ {
+ echo '<span style="color:red;">"'.$file.'" : ';
+ echo 'The name of the directory should be composed of ';
+ echo 'letters, figures, "-", "_" or "." ONLY';
+ echo '</span><br />';
+ }
}
}
}