Menu

#29 directory display on the index.php file is not correct

v1.0 (example)
open
nobody
index.php (1)
9
2015-01-30
2014-01-23
No

display directories in the index.php file when they contain Latin characters such as "ñ" is incorrect and shows a question mark.

Code in index.php:

Before:

#294: // recuperation des projets
#295: $handle=opendir(".");
#296: $projectContents = '';
#297: while ($file = readdir($handle)) 
#298: {
#299:   if (is_dir($file) && !in_array($file,$projectsListIgnore)) 
#300:   {
#301:       $projectContents .= '<li><a href="'.$file.'">'.$file.'</a></li>';
#302:   }
#303: }

After:

#294: // recuperation des projets
#295: $handle=opendir(".");
#296: $projectContents = '';
#297: while ($file = readdir($handle)) 
#298: {
#299:   if (is_dir($file) && !in_array($file,$projectsListIgnore)) 
#300:   {
#301:       $file = mb_convert_encoding($file, "UTF-8");
#302:       $projectContents .= '<li><a href="'.$file.'">'.$file.'</a></li>';
#303:   }
#304: }

With this fixes the problem.

Discussion


Log in to post a comment.