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:
parent
2e932eb254
commit
fd412dab5b
1 changed files with 7 additions and 0 deletions
|
@ -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 />';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue