fix special chars for dir attr.

This commit is contained in:
Miroslav Šedivý 2021-12-27 00:55:42 +01:00
parent 84849c77c0
commit 8987739842

View File

@ -277,7 +277,8 @@ function build_blocks( $items, $folder )
{
if( $sub_items )
{
echo "<div class='sub' data-folder=\"$file\">";
$file_url = htmlEntities(rawurlencode($file), ENT_QUOTES);
echo "<div class='sub' data-folder=\"$file_url\">";
build_blocks( $sub_items, $file );
echo "</div>";
}