mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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 />';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user