From fd412dab5b512baf8f75f4b19f98478db08f2d60 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 21 Sep 2003 18:01:02 +0000 Subject: 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 --- admin/create_listing_file.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 '"'.$file.'" : '; + echo 'The name of the directory should be composed of '; + echo 'letters, figures, "-", "_" or "." ONLY'; + echo '
'; + } } } } -- cgit v1.2.3