fix special chars for dir attr.
This commit is contained in:
parent
84849c77c0
commit
8987739842
@ -277,7 +277,8 @@ function build_blocks( $items, $folder )
|
|||||||
{
|
{
|
||||||
if( $sub_items )
|
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 );
|
build_blocks( $sub_items, $file );
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user