aboutsummaryrefslogtreecommitdiffstats
path: root/admin/create_listing_file.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-09-21 18:01:02 +0000
committerz0rglub <z0rglub@piwigo.org>2003-09-21 18:01:02 +0000
commitfd412dab5b512baf8f75f4b19f98478db08f2d60 (patch)
treee4e27b947f03fd80c3726d792e9567e81f72ddfb /admin/create_listing_file.php
parent2e932eb254d0eb1c9d4d859141a45af608394d00 (diff)
Displays a message when directory name contains accentuated characters or
spaces git-svn-id: http://piwigo.org/svn/trunk@155 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/create_listing_file.php')
-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 />';
+ }
}
}
}